We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
err.stack
React Native app crashed when try to access stack field in the error object
stack
in reactNative ( version 0.72.0 )
to reproduce (in react native)
import {rpcErrors} from '@metamask/rpc-errors'; try { let err = rpcErrors.invalidRequest(); console.log(err.stack); } catch (error) { console.log(error); }
Accessing stack in Error class works fine
Error
try { let err = new Error("error message"); console.log(err.stack); } catch (error) { console.log(error); }
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Assigning a potentially cyclic object directly to serialized.stack is not safe.
serialized.stack
Suggestion: Perform explicit serialization of the stack with a max-depth of recursion, or prune the reference.
No branches or pull requests
React Native app crashed when try to access
stack
field in the error objectin reactNative ( version 0.72.0 )
to reproduce (in react native)
Accessing
stack
inError
class works fineThe text was updated successfully, but these errors were encountered: