Final fixes

Reviewed By: amnn

Differential Revision: D5932093

fbshipit-source-id: f52a0bb3552af5ad003c051dc32dff0bfabb43ac
This commit is contained in:
Dan Caspi 2017-10-12 08:08:49 -07:00 committed by Facebook Github Bot
parent acd9a29d94
commit 0da1738e9b
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ namespace facebook {
void JSCExecutor::loadModule(uint32_t bundleId, uint32_t moduleId) {
auto module = m_bundleRegistry->getModule(bundleId, moduleId);
auto sourceUrl = String::createExpectingAscii(m_context, module.name);
auto source = String::createExpectingAscii(m_context, module.code);
auto source = adoptString(std::unique_ptr<JSBigString>(new JSBigStdString(module.code)));
evaluateScript(m_context, source, sourceUrl);
}