Migrating over CompiledSourceCode to new SourceProvider APIs.

Reviewed By: michalgr

Differential Revision: D4598042

fbshipit-source-id: ac6460c9156cc72e7925edac675a0b6ed57196f5
This commit is contained in:
Ashok Menon 2017-02-23 11:38:38 -08:00 committed by Facebook Github Bot
parent cf627fbdac
commit a0f2ca8668
1 changed files with 1 additions and 1 deletions

View File

@ -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: