Read bytecode format version from custom JSC executor only if custom JSC is enabled

Reviewed By: javache

Differential Revision: D4230129

fbshipit-source-id: d28e475d3a55320285a45f54b7ea495229be364d
This commit is contained in:
Indragie Karunaratne authored and Facebook Github Bot committed 2016-11-27 11:43:30 -08:00
1 parent 8b931ae09f
commit b4dbf2b477
1 file changed
+1 -1
+1 -1
View File
@@ -543,7 +543,7 @@ static void installBasicSynchronousHooksOnContext(JSContext *context)
- (int32_t)bytecodeFileFormatVersion
{
return _tryBytecode
return (_useCustomJSCLibrary && _tryBytecode)
? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion
: JSNoBytecodeFileFormatVersion;
}