From 899ad0740c2f461c3ff284a5ba7969065d127937 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Mon, 11 Dec 2017 23:12:13 +0300 Subject: [PATCH] Reflect the recent runtime initialization changes in the browser context. --- runtime/src/launcher/js/launcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/launcher/js/launcher.js b/runtime/src/launcher/js/launcher.js index 7f1b2aea007..e10f727c03c 100644 --- a/runtime/src/launcher/js/launcher.js +++ b/runtime/src/launcher/js/launcher.js @@ -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?