From 8e29e45dd545fd994f54e22d06f49d36d32d81f9 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Thu, 6 Nov 2025 23:36:58 -0500 Subject: [PATCH 1/2] fix addEmJs when parameter is indirect pointer --- src/lib/libdylink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/libdylink.js b/src/lib/libdylink.js index 50020af24a7fc..f1a4b6f57fa9e 100644 --- a/src/lib/libdylink.js +++ b/src/lib/libdylink.js @@ -880,7 +880,7 @@ var LibraryDylink = { cSig = cSig.split(','); for (var arg of cSig) { var jsArg = arg.split(' ').pop(); - jsArgs.push(jsArg.replace('*', '')); + jsArgs.push(jsArg.replaceAll('*', '')); } } var func = `(${jsArgs}) => ${body};`; From c113518f72fb5badf6bc2b26e518022a08226e24 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Sat, 8 Nov 2025 15:09:59 -0500 Subject: [PATCH 2/2] Automatic rebaseline of codesize expectations. NFC This is an automatic change generated by tools/maint/rebaseline_tests.py. The following (2) test expectation files were updated by running the tests with `--rebaseline`: ``` codesize/test_codesize_hello_dylink.json: 44309 => 44312 [+3 bytes / +0.01%] codesize/test_codesize_hello_dylink_all.json: 819522 => 819528 [+6 bytes / +0.00%] Average change: +0.00% (+0.00% - +0.01%) ``` --- test/codesize/test_codesize_hello_dylink.json | 8 ++++---- test/codesize/test_codesize_hello_dylink_all.json | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/codesize/test_codesize_hello_dylink.json b/test/codesize/test_codesize_hello_dylink.json index ca963a0cb05fa..c9882fe10d468 100644 --- a/test/codesize/test_codesize_hello_dylink.json +++ b/test/codesize/test_codesize_hello_dylink.json @@ -1,10 +1,10 @@ { - "a.out.js": 26552, - "a.out.js.gz": 11345, + "a.out.js": 26555, + "a.out.js.gz": 11349, "a.out.nodebug.wasm": 17757, "a.out.nodebug.wasm.gz": 8972, - "total": 44309, - "total_gz": 20317, + "total": 44312, + "total_gz": 20321, "sent": [ "__syscall_stat64", "emscripten_resize_heap", diff --git a/test/codesize/test_codesize_hello_dylink_all.json b/test/codesize/test_codesize_hello_dylink_all.json index bb29af482213c..0fa924c5ebc78 100644 --- a/test/codesize/test_codesize_hello_dylink_all.json +++ b/test/codesize/test_codesize_hello_dylink_all.json @@ -1,7 +1,7 @@ { - "a.out.js": 245483, - "a.out.nodebug.wasm": 574039, - "total": 819522, + "a.out.js": 245486, + "a.out.nodebug.wasm": 574042, + "total": 819528, "sent": [ "IMG_Init", "IMG_Load",