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:
parent
8b931ae09f
commit
b4dbf2b477
|
@ -543,7 +543,7 @@ static void installBasicSynchronousHooksOnContext(JSContext *context)
|
|||
|
||||
- (int32_t)bytecodeFileFormatVersion
|
||||
{
|
||||
return _tryBytecode
|
||||
return (_useCustomJSCLibrary && _tryBytecode)
|
||||
? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion
|
||||
: JSNoBytecodeFileFormatVersion;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue