mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Cleanup and document Value wrapper
Reviewed By: mhorowitz Differential Revision: D5087565 fbshipit-source-id: 21b15dc4c476d6ecd7c42f9334c6995fa43810c2
This commit is contained in:
committed by
Facebook Github Bot
parent
48156b7967
commit
374d08b8e4
@@ -348,7 +348,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, nullptr, jsSourceURL);
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
@@ -392,7 +392,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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
#include <jschelpers/JavaScriptCore.h>
|
||||
#include <jschelpers/Value.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user