You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ffi): re-adopt init result on host object for JS override return-this
When a JS override calls super.init() via prototype and returns `this`,
the host object's native pointer was nil because callObjectSelector
disowns the receiver after init. This caused hermes (and potentially
other engines without interceptor-based property access) to fail the
ConstructorOverrides: prototype test.
Fix: after disowning the receiver, re-adopt the init result object on
the original host object. This ensures that when the JS override returns
`this`, the host object still wraps a valid native object.
Tests: all engines 713/0 (hermes was 712/1, now fixed)
0 commit comments