Reflect the recent runtime initialization changes in the browser context.

This commit is contained in:
Alexander Gorshenev
2017-12-11 23:12:13 +03:00
committed by alexander-gorshenev
parent 2cc390376f
commit 899ad0740c
+1 -1
View File
@@ -199,7 +199,7 @@ function invokeModule(inst, args) {
try {
runGlobalInitializers(instance.exports);
if (isBrowser()) {
instance.memoryState = instance.exports.InitRuntime();
instance.exports.Kotlin_initRuntimeIfNeeded();
}
exit_status = instance.exports.Konan_js_main(args.length, isBrowser() ? 0 : 1);
// TODO: so when should we deinit runtime?