Final fixes

Reviewed By: amnn

Differential Revision: D6050931

fbshipit-source-id: 44db12becc0057fe71d469f3e9e6fc16a5d4d5af
This commit is contained in:
Dan Caspi 2017-10-19 14:05:41 -07:00 committed by Facebook Github Bot
parent 4e1dfa48a2
commit 40a90831b8
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);
}