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 2016-11-27 11:38:35 -08:00 committed by Facebook Github Bot
parent 8b931ae09f
commit b4dbf2b477
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ static void installBasicSynchronousHooksOnContext(JSContext *context)
- (int32_t)bytecodeFileFormatVersion
{
return _tryBytecode
return (_useCustomJSCLibrary && _tryBytecode)
? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion
: JSNoBytecodeFileFormatVersion;
}