From b4dbf2b47787c5ee0c63ce3333f4f100c2b7f4df Mon Sep 17 00:00:00 2001 From: Indragie Karunaratne Date: Sun, 27 Nov 2016 11:38:35 -0800 Subject: [PATCH] Read bytecode format version from custom JSC executor only if custom JSC is enabled Reviewed By: javache Differential Revision: D4230129 fbshipit-source-id: d28e475d3a55320285a45f54b7ea495229be364d --- React/Executors/RCTJSCExecutor.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Executors/RCTJSCExecutor.mm b/React/Executors/RCTJSCExecutor.mm index f45067eb3..3bad2ee2d 100644 --- a/React/Executors/RCTJSCExecutor.mm +++ b/React/Executors/RCTJSCExecutor.mm @@ -543,7 +543,7 @@ static void installBasicSynchronousHooksOnContext(JSContext *context) - (int32_t)bytecodeFileFormatVersion { - return _tryBytecode + return (_useCustomJSCLibrary && _tryBytecode) ? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion : JSNoBytecodeFileFormatVersion; }