Skip to content

Commit fd0df37

Browse files
authored
Fix argument naming in instantiateWasm handler. NFC (#25337)
Fixes: #25336
1 parent 20da925 commit fd0df37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/preamble.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ function getWasmImports() {
795795
#if ASSERTIONS
796796
try {
797797
#endif
798-
Module['instantiateWasm'](info, (mod, inst) => {
799-
resolve(receiveInstance(mod, inst));
798+
Module['instantiateWasm'](info, (inst, mod) => {
799+
resolve(receiveInstance(inst, mod));
800800
});
801801
#if ASSERTIONS
802802
} catch(e) {

test/codesize/test_unoptimized_code_size.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"hello_world.wasm": 15127,
55
"hello_world.wasm.gz": 7450,
66
"no_asserts.js": 26557,
7-
"no_asserts.js.gz": 8869,
7+
"no_asserts.js.gz": 8867,
88
"no_asserts.wasm": 12227,
99
"no_asserts.wasm.gz": 6010,
1010
"strict.js": 52190,
1111
"strict.js.gz": 16422,
1212
"strict.wasm": 15127,
1313
"strict.wasm.gz": 7447,
1414
"total": 175380,
15-
"total_gz": 63286
15+
"total_gz": 63284
1616
}

0 commit comments

Comments
 (0)