Avoid crash when accessing jsContextRef without an executor

Reviewed By: adamjernst

Differential Revision: D5237039

fbshipit-source-id: 6a86da90605b896093e0ef99b0fcf079bf9854bf
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2017-06-14 05:32:27 -07:00
1 parent ce6fb337a1
commit c25f356675
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -81,8 +81,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
code:RCTJavaScriptLoaderErrorNoScriptURL
userInfo:@{NSLocalizedDescriptionKey:
[NSString stringWithFormat:@"No script URL provided. Make sure the packager is "
@"running or you have embedded a JS bundle in your application bundle."
@"unsanitizedScriptURLString:(%@)", unsanitizedScriptURLString]}];
@"running or you have embedded a JS bundle in your application bundle.\n\n"
@"unsanitizedScriptURLString = %@", unsanitizedScriptURLString]}];
}
return nil;
}