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/global_i64.2asm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/wasm2js/global_i64.2asm.js') diff --git a/test/wasm2js/global_i64.2asm.js b/test/wasm2js/global_i64.2asm.js index 77436ccae..71073de91 100644 --- a/test/wasm2js/global_i64.2asm.js +++ b/test/wasm2js/global_i64.2asm.js @@ -1,6 +1,5 @@ -function asmFunc(importObject) { - var env = importObject.env || importObject; +function asmFunc(imports) { var Math_imul = Math.imul; var Math_fround = Math.fround; var Math_abs = Math.abs; -- cgit v1.2.3