We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be503ef commit a22ee1eCopy full SHA for a22ee1e
React/Base/RCTJSCErrorHandling.mm
@@ -13,6 +13,7 @@
13
14
#import "RCTAssert.h"
15
#import "RCTJSStackFrame.h"
16
+#import "RCTLog.h"
17
18
NSString *const RCTJSExceptionUnsymbolicatedStackTraceKey = @"RCTJSExceptionUnsymbolicatedStackTraceKey";
19
@@ -25,7 +26,9 @@
25
26
userInfo[NSLocalizedFailureReasonErrorKey] = exceptionMessage;
27
}
28
NSString *const stack = [exception[@"stack"] toString];
- if ([stack length]) {
29
+ if ([@"undefined" isEqualToString:stack]) {
30
+ RCTLogWarn(@"Couldn't get stack trace for %@:%@", exception[@"sourceURL"], exception[@"line"]);
31
+ } else if ([stack length]) {
32
NSArray<RCTJSStackFrame *> *const unsymbolicatedFrames = [RCTJSStackFrame stackFramesWithLines:stack];
33
userInfo[RCTJSStackTraceKey] = unsymbolicatedFrames;
34
0 commit comments