Reflect the recent runtime initialization changes in the browser context.
This commit is contained in:
committed by
alexander-gorshenev
parent
2cc390376f
commit
899ad0740c
@@ -199,7 +199,7 @@ function invokeModule(inst, args) {
|
|||||||
try {
|
try {
|
||||||
runGlobalInitializers(instance.exports);
|
runGlobalInitializers(instance.exports);
|
||||||
if (isBrowser()) {
|
if (isBrowser()) {
|
||||||
instance.memoryState = instance.exports.InitRuntime();
|
instance.exports.Kotlin_initRuntimeIfNeeded();
|
||||||
}
|
}
|
||||||
exit_status = instance.exports.Konan_js_main(args.length, isBrowser() ? 0 : 1);
|
exit_status = instance.exports.Konan_js_main(args.length, isBrowser() ? 0 : 1);
|
||||||
// TODO: so when should we deinit runtime?
|
// TODO: so when should we deinit runtime?
|
||||||
|
|||||||
Reference in New Issue
Block a user