summaryrefslogtreecommitdiff
path: root/test/wasm2js/indirect-select.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/indirect-select.2asm.js')
-rw-r--r--test/wasm2js/indirect-select.2asm.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/wasm2js/indirect-select.2asm.js b/test/wasm2js/indirect-select.2asm.js
index c79b0ae49..a5036ecf2 100644
--- a/test/wasm2js/indirect-select.2asm.js
+++ b/test/wasm2js/indirect-select.2asm.js
@@ -1,7 +1,7 @@
-import { table } from 'env';
+import * as env from 'env';
-function asmFunc(importObject) {
- var env = importObject.env || importObject;
+function asmFunc(imports) {
+ var env = imports.env;
var FUNCTION_TABLE = env.table;
var Math_imul = Math.imul;
var Math_fround = Math.fround;
@@ -32,7 +32,7 @@ function asmFunc(importObject) {
}
var retasmFunc = asmFunc({
- table,
+ "env": env,
});
export var foo_true = retasmFunc.foo_true;
export var foo_false = retasmFunc.foo_false;