From 4ecf99c053c1e8b10e87c8e2c816502c6572e99e Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 20 Aug 2024 19:45:38 -0700 Subject: [PATCH] Fix initial value of `dynCalls` (#22422) This was a mistake from #22418. See https://github.com/emscripten-core/emscripten/pull/22418#discussion_r1724109906 --- src/library.js | 2 +- test/code_size/embind_hello_wasm.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/library.js b/src/library.js index 90589f3234f60..12cbc8cbab9dc 100644 --- a/src/library.js +++ b/src/library.js @@ -1857,7 +1857,7 @@ addToLibrary({ #if DYNCALLS || !WASM_BIGINT #if MINIMAL_RUNTIME - $dynCalls: '[]', + $dynCalls: '{}', #endif $dynCallLegacy__deps: [ #if MAIN_MODULE == 1 diff --git a/test/code_size/embind_hello_wasm.json b/test/code_size/embind_hello_wasm.json index 23c8fbff06526..17466f1953b77 100644 --- a/test/code_size/embind_hello_wasm.json +++ b/test/code_size/embind_hello_wasm.json @@ -2,9 +2,9 @@ "a.html": 552, "a.html.gz": 380, "a.js": 9961, - "a.js.gz": 4352, + "a.js.gz": 4350, "a.wasm": 7820, "a.wasm.gz": 3526, "total": 18333, - "total_gz": 8258 + "total_gz": 8256 }