mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Make Bytecode Header errors non-fatal
Reviewed By: michalgr Differential Revision: D4182575 fbshipit-source-id: 1e7c229bb6d0bdbfdfc01e93af53441ba2cba9f9
This commit is contained in:
parent
c3448236da
commit
f22dfa3efb
@ -328,6 +328,11 @@ void JSCExecutor::loadApplicationScript(
|
|||||||
folly::checkUnixError(fd, "Couldn't open compiled bundle");
|
folly::checkUnixError(fd, "Couldn't open compiled bundle");
|
||||||
SCOPE_EXIT { close(fd); };
|
SCOPE_EXIT { close(fd); };
|
||||||
sourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL);
|
sourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL);
|
||||||
|
|
||||||
|
folly::throwOnFail<std::runtime_error>(
|
||||||
|
sourceCode != nullptr,
|
||||||
|
"Could not create compiled source code"
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
auto jsScriptBigString = JSBigMmapString::fromOptimizedBundle(bundlePath);
|
auto jsScriptBigString = JSBigMmapString::fromOptimizedBundle(bundlePath);
|
||||||
if (jsScriptBigString->encoding() != JSBigMmapString::Encoding::Ascii) {
|
if (jsScriptBigString->encoding() != JSBigMmapString::Encoding::Ascii) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user