Fix making loadScriptFromString always synchronous

Reviewed By: javache

Differential Revision: D5129620

fbshipit-source-id: a0ad5e2704fc38f4cdfe29187a2b59ba4b0ff61b
This commit is contained in:
Kathy Gray 2017-05-25 16:37:38 -07:00 committed by Facebook Github Bot
parent 9f81baa834
commit 35b888dc11
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ void Instance::loadScriptFromString(std::unique_ptr<const JSBigString> string,
if (loadSynchronously) {
loadApplicationSync(nullptr, std::move(string), std::move(sourceURL));
} else {
loadApplicationSync(nullptr, std::move(string), std::move(sourceURL));
loadApplication(nullptr, std::move(string), std::move(sourceURL));
}
}