-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object.getOwnPropertyDescriptors
is not available in Hermes, RN 0.62.2
#274
Comments
That's because it's in ES2017, and Hermes only implements ES2015. |
@mweststrate I'll look into implementing this soon, thanks for the report. @ljharb Hermes implements various features past ES2015 (particularly in terms of library functions), just missed this one. |
@mweststrate In terms of the error message: the general issue is that Hermes doesn't typically run directly on source but by executing bytecode, so it doesn't have access to source level expressions like If the line/column numbers are ever incorrect (they're too large, for example, indicating bytecode addresses instead of actual source locations) and you have some useful reproduction instructions, then you can file an issue in the React Native repository, since the symbolication logic for RN lives over there. We're trying to make sure the debugging experience is as smooth as it can be given that the Hermes execution model is different from most other ways of running JS. |
Added in ad42e5c |
Awesome, thanks @avp! |
We got some bug reports that
immer@7
is broken on Hermes engine. From debugging it seems thatObject.getOwnPropertyDescriptors
is not defined in Hermes (in contrast toObject.getOwnPropertyDescriptor
). See screenshot:Minimal reproduction test project is available in the original issue: immerjs/immer#626 (comment)
(P.s. would be great if the error message could be improved from
TypeError: undefined is not a function
to something likeUncaught TypeError: Object.bla is not a function at <anonymous>:1:8
as is done in Chrome for example)The text was updated successfully, but these errors were encountered: