Skip to content

[0.82] E2Ex86 CI failure fix - #15549

Merged
Abhijeet Jha (iamAbhi-916) merged 3 commits into
0.82-stablefrom
e2ex86-fix
Jan 20, 2026
Merged

[0.82] E2Ex86 CI failure fix#15549
Abhijeet Jha (iamAbhi-916) merged 3 commits into
0.82-stablefrom
e2ex86-fix

Conversation

@vineethkuttan

@vineethkuttan Vineeth (vineethkuttan) commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Description

E2ex86 is failing because of MSVC compiler issue with the ternary operator, modified the codegen source file to generate file using comma operator.

This fix is only applicable for 0.82 , cause this file will be removed in upcoming intergration.
upstream commit: react/react-native#54059

Please validate the code changes from npm code viewer, cause the code in react native is different from published codegen package.
image

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

This will fix our CI pipeline, and user can build x86 RNW app without any issues

Resolves [ #15545 ]

What

Modified the windows codegen to use our own custom generator instead of the file from @react-native/codegen

image This is the difference between react native generator and our own generator.

Testing

Tested in playground and e2e for all different arch

Changelog

Should this change be included in the release notes: yes

Modified codegen generators so that use of ternary operator will be avoided.

Microsoft Reviewers: Open in CodeFlow

@vineethkuttan Vineeth (vineethkuttan) changed the title [0.82] E2Ex86 is failure fix [0.82] E2Ex86 CI failure fix Jan 15, 2026
@iamAbhi-916
Abhijeet Jha (iamAbhi-916) marked this pull request as ready for review January 16, 2026 05:56
@iamAbhi-916
Abhijeet Jha (iamAbhi-916) requested a review from a team as a code owner January 16, 2026 05:56
// param: T
//return `count <= ${index} ? throw jsi::JSError(rt, "Expected argument in position ${index} to be passed") : ${expression}`;
//Windows #15545
return `(count > ${index} || (throw jsi::JSError(rt, "Expected argument in position ${index} to be passed"), false), ${expression})`;

@iamAbhi-916 Abhijeet Jha (iamAbhi-916) Jan 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@iamAbhi-916
Abhijeet Jha (iamAbhi-916) merged commit 8b6a19d into 0.82-stable Jan 20, 2026
41 checks passed
@iamAbhi-916
Abhijeet Jha (iamAbhi-916) deleted the e2ex86-fix branch January 20, 2026 03:50
Julio César Rocha (JunielKatarn) pushed a commit to jurocha-ms/react-native-windows that referenced this pull request Jun 9, 2026
* forking GenerateModuleCpp

* Change files

* review changes

(cherry picked from commit 8b6a19d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants