From a0f2ca8668bac0787e4ace2d005a11da43cd9029 Mon Sep 17 00:00:00 2001 From: Ashok Menon Date: Thu, 23 Feb 2017 11:38:38 -0800 Subject: [PATCH] Migrating over CompiledSourceCode to new SourceProvider APIs. Reviewed By: michalgr Differential Revision: D4598042 fbshipit-source-id: ac6460c9156cc72e7925edac675a0b6ed57196f5 --- ReactCommon/cxxreact/JSCExecutor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/cxxreact/JSCExecutor.cpp b/ReactCommon/cxxreact/JSCExecutor.cpp index bfc35e76f..b2070c8e7 100644 --- a/ReactCommon/cxxreact/JSCExecutor.cpp +++ b/ReactCommon/cxxreact/JSCExecutor.cpp @@ -355,7 +355,7 @@ void JSCExecutor::loadApplicationScript(std::unique_ptr scrip #ifdef WITH_FBJSCEXTENSIONS if (auto fileStr = dynamic_cast(script.get())) { JSLoadSourceStatus jsStatus; - auto bcSourceCode = JSCreateCompiledSourceCode(fileStr->fd(), jsSourceURL, &jsStatus); + auto bcSourceCode = JSCreateSourceCodeFromFile(fileStr->fd(), jsSourceURL, nullptr, &jsStatus); switch (jsStatus) { case JSLoadSourceIsCompiled: