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:
committed by
alexander-gorshenev
parent
8a3e09d839
commit
992a0a7337
@@ -19,7 +19,7 @@ let heap;
|
||||
let global_arguments;
|
||||
|
||||
function isBrowser() {
|
||||
return typeof window !== 'undefined';
|
||||
return typeof self !== 'undefined';
|
||||
}
|
||||
|
||||
let runtime;
|
||||
|
||||
Reference in New Issue
Block a user