mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-12 22:39:06 +08:00
Cleanup and document Value wrapper (retry)
Reviewed By: mhorowitz Differential Revision: D5120975 fbshipit-source-id: 6e9c80a57fdcf7f3dad21d5521fb928b52c924c7
This commit is contained in:
committed by
Facebook Github Bot
parent
11424a8bc6
commit
03e1f40c1e
@@ -346,7 +346,7 @@ void JSCExecutor::loadApplicationScript(std::unique_ptr<const JSBigString> scrip
|
||||
JSValueRef jsError;
|
||||
JSValueRef result = JSC_JSEvaluateBytecodeBundle(m_context, NULL, sourceFD, jsSourceURL, &jsError);
|
||||
if (result == nullptr) {
|
||||
formatAndThrowJSException(m_context, jsError, jsSourceURL);
|
||||
throw JSException(m_context, jsError, jsSourceURL);
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
@@ -390,7 +390,7 @@ void JSCExecutor::bindBridge() throw(JSException) {
|
||||
batchedBridgeValue = requireBatchedBridge.asObject().callAsFunction({});
|
||||
}
|
||||
if (batchedBridgeValue.isUndefined()) {
|
||||
throwJSExecutionException("Could not get BatchedBridge, make sure your bundle is packaged correctly");
|
||||
throw JSException("Could not get BatchedBridge, make sure your bundle is packaged correctly");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user