Final fixes
Reviewed By: amnn Differential Revision: D5932093 fbshipit-source-id: f52a0bb3552af5ad003c051dc32dff0bfabb43ac
This commit is contained in:
parent
acd9a29d94
commit
0da1738e9b
|
@ -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