[ReactNative] Redbox if JSC syntax errors

This commit is contained in:
Christopher Chedeau 2015-05-15 15:32:10 -07:00
parent d9b7e63e47
commit 723e988416
1 changed files with 3 additions and 0 deletions

View File

@ -1148,6 +1148,9 @@ RCT_INNER_BRIDGE_ONLY(_invokeAndProcessModule:(NSString *)module method:(NSStrin
[[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptDidLoadNotification [[NSNotificationCenter defaultCenter] postNotificationName:RCTJavaScriptDidLoadNotification
object:_parentBridge object:_parentBridge
userInfo:@{ @"bridge": self }]; userInfo:@{ @"bridge": self }];
} else {
[[RCTRedBox sharedInstance] showErrorMessage:[loadError localizedDescription]
withDetails:[loadError localizedFailureReason]];
} }
}]; }];
} }