Fix warning

This commit is contained in:
Fabian 2020-12-31 19:14:32 -06:00
parent 514c2ad303
commit ab5f6e99ba

View file

@ -1410,7 +1410,9 @@ CPU.prototype.codegen_finalize = function(wasm_table_index, start, end, first_op
// WebAssembly.instantiate looks them up asynchronously
const jit_imports = new this.jit_imports.constructor();
if(false)
const SYNC_COMPILATION = false;
if(SYNC_COMPILATION)
{
const module = new WebAssembly.Module(code);
const result = new WebAssembly.Instance(module, { "e": jit_imports });