Skip to content

feat(hermes): add pr2045 object-literal accessor home-object patch#55

Merged
ramonclaudio merged 1 commit into
mainfrom
feat/hermes-pr2045
Jun 4, 2026
Merged

feat(hermes): add pr2045 object-literal accessor home-object patch#55
ramonclaudio merged 1 commit into
mainfrom
feat/hermes-pr2045

Conversation

@ramonclaudio

Copy link
Copy Markdown
Owner

Add the hermes source patch for facebook/hermes#2045, a cherry-pick of 18a9634659 onto the 250829098.0.0-stable branch React Native 0.85 ships.

genObjectExpr passed nullptr as the home object when generating an object-literal getter or setter, so super.x inside an accessor compiled against a null home object and SIGSEGV'd hermesc at compile time. The cherry-pick makes accessors pass capturedObj, matching the regular-method path.

Source-level replacement for the super-in-object-accessor workaround dropped with @react-native/babel-preset #56816. Apply with git apply against a facebook/hermes V1 checkout. Root cause facebook/hermes#1761.

  • add packages/hermes/hermes-pr2045.patch
  • add the hermes row to the Open table

(supersedes #50, which GitHub auto-closed when its stacked base branch was deleted on merge of #49)

@ramonclaudio ramonclaudio merged commit 9fc5aa0 into main Jun 4, 2026
@ramonclaudio ramonclaudio deleted the feat/hermes-pr2045 branch June 4, 2026 20:14
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.

1 participant