Final fixes
Reviewed By: amnn Differential Revision: D6050931 fbshipit-source-id: 44db12becc0057fe71d469f3e9e6fc16a5d4d5af
This commit is contained in:
parent
4e1dfa48a2
commit
40a90831b8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue