Remove some things from jit imports
This commit is contained in:
parent
b9cd08f041
commit
416b4b4b82
|
@ -186,8 +186,14 @@ CPU.prototype.create_jit_imports = function()
|
|||
const jit_imports = Object.create(null);
|
||||
|
||||
jit_imports["m"] = this.wm.exports["memory"];
|
||||
|
||||
for(let name of Object.keys(this.wm.exports))
|
||||
{
|
||||
if(name.startsWith("_") || name.startsWith("ZSTD") || name.startsWith("zstd") || name.endsWith("_js"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
jit_imports[name] = this.wm.exports[name];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue