Skip to content

Commit

Permalink
Read bytecode format version from custom JSC executor only if custom …
Browse files Browse the repository at this point in the history
…JSC is enabled

Reviewed By: javache

Differential Revision: D4230129

fbshipit-source-id: d28e475d3a55320285a45f54b7ea495229be364d
  • Loading branch information
Indragie Karunaratne authored and Facebook Github Bot committed Nov 27, 2016
1 parent 8b931ae commit b4dbf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Executors/RCTJSCExecutor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ - (void)invalidate

- (int32_t)bytecodeFileFormatVersion
{
return _tryBytecode
return (_useCustomJSCLibrary && _tryBytecode)
? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion
: JSNoBytecodeFileFormatVersion;
}
Expand Down

0 comments on commit b4dbf2b

Please sign in to comment.