e443b7379e
Summary: Output the reason for the error when failing to load source code. This was a big help when trying to diagnose https://github.com/facebook/react-native/issues/13299. ~~Unfortunately there still seems to be no way to get the offending line number (because `loadError.userInfo[RCTJSStackTraceKey]` is empty), but this is good enough.~~ Before: ``` [warn][tid:com.facebook.react.JavaScript][RCTBatchedBridge.m:510] Failed to execute source code. Unhandled JS Exception: SyntaxError ``` After: ``` [warn][tid:com.facebook.react.JavaScript][RCTJSCErrorHandling.mm:30] Couldn't get stack trace for http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:81886 [warn][tid:com.facebook.react.JavaScript][RCTBatchedBridge.m:510] Failed to execute source code. Unhandled JS Exception: SyntaxError Unexpected keyword 'var' ``` Closes https://github.com/facebook/react-native/pull/13561 Differential Revision: D4908501 Pulled By: javache fbshipit-source-id: a316dc70739b917b3cc690309d0ff37a8bb5d412 |
||
---|---|---|
.. | ||
NSDataBigString.h | ||
NSDataBigString.mm | ||
RCTCxxBridge.mm | ||
RCTJSCHelpers.h | ||
RCTJSCHelpers.mm | ||
RCTMessageThread.h | ||
RCTMessageThread.mm | ||
RCTObjcExecutor.h | ||
RCTObjcExecutor.mm |