mirror of https://github.com/gorhill/uBlock.git
Ensure that WASM module was actually loaded
This commit is contained in:
parent
81e4cb81e3
commit
fc03782985
|
@ -497,6 +497,9 @@ HNTrieContainer.prototype = {
|
|||
},
|
||||
|
||||
initWASM: function(module) {
|
||||
if ( module instanceof WebAssembly.Module === false ) {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
if ( this.wasmInstancePromise === null ) {
|
||||
const memory = new WebAssembly.Memory({ initial: 2 });
|
||||
this.wasmInstancePromise = WebAssembly.instantiate(
|
||||
|
|
Loading…
Reference in New Issue