mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
Migrating over CompiledSourceCode to new SourceProvider APIs.
Reviewed By: michalgr Differential Revision: D4598042 fbshipit-source-id: ac6460c9156cc72e7925edac675a0b6ed57196f5
This commit is contained in:
parent
cf627fbdac
commit
a0f2ca8668
@ -355,7 +355,7 @@ void JSCExecutor::loadApplicationScript(std::unique_ptr<const JSBigString> scrip
|
||||
#ifdef WITH_FBJSCEXTENSIONS
|
||||
if (auto fileStr = dynamic_cast<const JSBigFileString *>(script.get())) {
|
||||
JSLoadSourceStatus jsStatus;
|
||||
auto bcSourceCode = JSCreateCompiledSourceCode(fileStr->fd(), jsSourceURL, &jsStatus);
|
||||
auto bcSourceCode = JSCreateSourceCodeFromFile(fileStr->fd(), jsSourceURL, nullptr, &jsStatus);
|
||||
|
||||
switch (jsStatus) {
|
||||
case JSLoadSourceIsCompiled:
|
||||
|
Loading…
x
Reference in New Issue
Block a user