mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-01 21:12:19 +08:00
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:
committed by
Facebook Github Bot
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user