Fix parseTypeFromHeader for Hermes bytecode

Summary: Changelog: [Internal] Fix bug where Hermes bytecode bundles were not always recognized

Reviewed By: motiz88

Differential Revision: D34718511

fbshipit-source-id: 5bbebe49962d098988d99153b0938fbb5d449ae6
This commit is contained in:
Pieter De Baets
2022-03-15 05:58:52 -07:00
committed by Facebook GitHub Bot
parent 4b6c0b92c0
commit be0ff779b1
9 changed files with 58 additions and 56 deletions
+1 -4
View File
@@ -11,10 +11,7 @@
extern NSString *const RCTJavaScriptLoaderErrorDomain;
extern const UInt32 RCT_BYTECODE_ALIGNMENT;
UInt32 RCTReadUInt32LE(NSData *script, UInt32 offset);
bool RCTIsBytecodeBundle(NSData *script);
extern const uint32_t RCT_BYTECODE_ALIGNMENT;
NS_ENUM(NSInteger){
RCTJavaScriptLoaderErrorNoScriptURL = 1,