mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
JavaScriptLoader BCBundle version check
Summary: Currently a build warning is thrown by `if (header.BCVersion != runtimeBCVersion) ...` because `runtimeBCVersion` is signed, apparently because `-1` is used to mean that the runtime has no support for bytecode bundles. This PR splits out the error case of the runtime not supporting BC bundles from the case of a version mismatch. Tested as much as I could by building and running `UIExplorer` - I haven't attempted to use real bytecode bundles. Closes https://github.com/facebook/react-native/pull/11806 Differential Revision: D4408608 fbshipit-source-id: a1d868bb2064588e6a20827692629a46b6ba1e74
This commit is contained in:
committed by
Facebook Github Bot
parent
55f0294b7d
commit
4844225eed
@@ -20,6 +20,7 @@ NS_ENUM(NSInteger) {
|
||||
RCTJavaScriptLoaderErrorFailedStatingFile = 3,
|
||||
RCTJavaScriptLoaderErrorURLLoadFailed = 3,
|
||||
RCTJavaScriptLoaderErrorBCVersion = 4,
|
||||
RCTJavaScriptLoaderErrorBCNotSupported = 4,
|
||||
|
||||
RCTJavaScriptLoaderErrorCannotBeLoadedSynchronously = 1000,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user