Skip to content

Commit b4dbf2b

Browse files
Indragie KarunaratneFacebook Github Bot
Indragie Karunaratne
authored and
Facebook Github Bot
committed
Read bytecode format version from custom JSC executor only if custom JSC is enabled
Reviewed By: javache Differential Revision: D4230129 fbshipit-source-id: d28e475d3a55320285a45f54b7ea495229be364d
1 parent 8b931ae commit b4dbf2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Executors/RCTJSCExecutor.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ - (void)invalidate
543543

544544
- (int32_t)bytecodeFileFormatVersion
545545
{
546-
return _tryBytecode
546+
return (_useCustomJSCLibrary && _tryBytecode)
547547
? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion
548548
: JSNoBytecodeFileFormatVersion;
549549
}

0 commit comments

Comments
 (0)