Closed robhogan closed 55 minutes ago
[!WARNING] Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
- If your bug is UI related: a Snack
- If your bug is build/upgrade related: a project using our Reproducer Template
- Otherwise send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
FYI @Kudo who has been working on updating Android JSC
0.76 requires 15.1 though, instead of 15.4, so we don’t have it supported in the current min iOS we claim to support.
the version i updated is based on WebKitGTK 2.26.4, which is still old and would not support Object.hasOwn. there is a hard blocker for updating jsc-android to newer version. newer jsc doesn't have a way to turn off Intl
support. we have to ship Intl variant only and would definitely increase apk size. that's why i plan to update jsc version and ship Intl variant only when we moving away jsc from core.
so, i would recommend a polyfill in 0.77
FWIW - I originally planned to polyfill this but decided against introducing ad-hoc polyfills based on what features we (somewhat arbitrarily) might decide to use in core.
We don't currently have many (any?) polyfills for newer ES functionality, only RN-specific implementations (console
, error-guard
), so I'd rather continue to leave polyfills up to users/frameworks unless/until we have a consistent policy in core.
I've patched it up at the callsites to not require Object.hasOwn
instead.
Description
Object.hasOwn
is not implemented in the version of JSC shipped with RN Android, or on iOS < 15.4 (according to MDN-untested).Object.hasOwn
was introduced into RN core in https://github.com/facebook/react-native/pull/46386 (CC @yungsters)We either need to replace that usage, or add a shim/polyfill for
Object.hasOwn
.IMO, this is stable release blocking for RN 0.77.
Steps to reproduce
Navigate to FlatList -> Basic.
React Native Version
0.77.0-rc.0
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/facebook/react-native
Screenshots and Videos