Improper use of 'await' can trigger full app crash #15624
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Resolution: Locked
This issue was locked by the bot.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: (0.47.2)react-native-cli: 1.0.0
react-native: 1000.0.0
node -v
:v6.3.1
npm -v
:4.6.1
yarn --version
:Then, specify:
Steps to Reproduce
In the XCode log.
XCode backtrace:
Expected Behavior
App should handle the error in RedBox without crash displaying "await is a reserved message".
Actual Behavior
App crashes in Xcode with an unhandled exception due to a component not being dealloced properly.
Reproducible Demo
Cannot create a demo on Snack / Expo to replicate an iOS crash.
Additional Note
I also am getting this crash in a non-boilerplate production app when Reload JS is clicked twice with any javascript or JSX error, not just await. (just in case there isn't a connection here to async functions).
The text was updated successfully, but these errors were encountered: