From c43721a1ae80539aea5ea9d8d295b7e377aa03f5 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 5 Oct 2022 15:18:22 -0700 Subject: wasm2js: Support for flexible module import naming (#5114) The previous code was making emscripten-specific assumptions about imports basically all coming from the `env` module. I can't find a way to make this backwards compatible so may do a combined roll with the emscripten-side change: https://github.com/emscripten-core/emscripten/pull/17806 --- test/wasm2js.traps.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/wasm2js.traps.js') diff --git a/test/wasm2js.traps.js b/test/wasm2js.traps.js index 31d9557e0..0b1d24b95 100644 --- a/test/wasm2js.traps.js +++ b/test/wasm2js.traps.js @@ -30,8 +30,7 @@ return (actual_lo | 0) == (expected_lo | 0) && (actual_hi | 0) == (expected_hi | 0); } -function asmFunc0(importObject) { - var env = importObject.env || importObject; +function asmFunc0(imports) { var Math_imul = Math.imul; var Math_fround = Math.fround; var Math_abs = Math.abs; -- cgit v1.2.3