Skip to content

Conversation

@vineethkuttan
Copy link
Contributor

@vineethkuttan vineethkuttan commented Jan 15, 2026

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: facebook/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 vineethkuttan changed the title [0.82] E2Ex86 is failure fix [0.82] E2Ex86 CI failure fix Jan 15, 2026
@iamAbhi-916 iamAbhi-916 marked this pull request as ready for review January 16, 2026 05:56
@iamAbhi-916 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})`;
Copy link
Contributor

@iamAbhi-916 iamAbhi-916 Jan 16, 2026

Choose a reason for hiding this comment

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

looks good to me!

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