Make launcher.js work in Web Workers / Worklets

Since WebAssembly object should be exposed to Window/Worker/Worklet according to [it's WebIDL](https://webassembly.github.io/spec/js-api/index.html#webassembly-namespace)
This commit is contained in:
Sergey Rubanov
2018-12-10 02:18:45 +03:00
committed by alexander-gorshenev
parent 8a3e09d839
commit 992a0a7337
+1 -1
View File
@@ -19,7 +19,7 @@ let heap;
let global_arguments;
function isBrowser() {
return typeof window !== 'undefined';
return typeof self !== 'undefined';
}
let runtime;