diff --git a/src/library.js b/src/library.js index 74038b30bfd78..b64cca2ef1a8e 100644 --- a/src/library.js +++ b/src/library.js @@ -2187,9 +2187,9 @@ addToLibrary({ #endif // ENVIRONMENT_MAY_BE_NODE // we couldn't find a proper implementation, as Math.random() is not suitable for /dev/random, see emscripten-core/emscripten/pull/7096 #if ASSERTIONS - abort("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };"); + abort('no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: (array) => { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };'); #else - abort("initRandomDevice"); + abort('initRandomDevice'); #endif }, @@ -3198,7 +3198,7 @@ addToLibrary({ #endif } #if ASSERTIONS && ASYNCIFY != 2 // With JSPI the function stored in the table will be a wrapper. - assert(wasmTable.get(funcPtr) == func, "JavaScript-side Wasm function table mirror is out of date!"); + assert(wasmTable.get(funcPtr) == func, 'JavaScript-side Wasm function table mirror is out of date!'); #endif return func; }, diff --git a/src/library_fs.js b/src/library_fs.js index 92880694e80f2..f14e01e5e0b34 100644 --- a/src/library_fs.js +++ b/src/library_fs.js @@ -37,7 +37,7 @@ addToLibrary({ $FS__postset: function() { // TODO: do we need noFSInit? addAtInit(` -if (!Module["noFSInit"] && !FS.init.initialized) +if (!Module['noFSInit'] && !FS.init.initialized) FS.init(); FS.ignorePermissions = false; `) diff --git a/src/preamble.js b/src/preamble.js index ee38da9aa4d99..032eff4b8eeb8 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -95,13 +95,13 @@ function assert(condition, text) { // builds with assertions. #if !hasExportedSymbol('malloc') function _malloc() { - abort("malloc() called but not included in the build - add '_malloc' to EXPORTED_FUNCTIONS"); + abort('malloc() called but not included in the build - add `_malloc` to EXPORTED_FUNCTIONS'); } #endif // malloc #if !hasExportedSymbol('free') function _free() { // Show a helpful error since we used to include free by default in the past. - abort("free() called but not included in the build - add '_free' to EXPORTED_FUNCTIONS"); + abort('free() called but not included in the build - add `_free` to EXPORTED_FUNCTIONS'); } #endif // free #endif // ASSERTIONS @@ -641,9 +641,9 @@ function getBinarySync(file) { return readBinary(file); } #if WASM_ASYNC_COMPILATION - throw "both async and sync fetching of the wasm failed"; + throw 'both async and sync fetching of the wasm failed'; #else - throw "sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)"; + throw 'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)'; #endif } @@ -666,7 +666,7 @@ function getBinaryPromise(binaryFile) { ) { return fetch(binaryFile, {{{ makeModuleReceiveExpr('fetchSettings', "{ credentials: 'same-origin' }") }}}).then((response) => { if (!response['ok']) { - throw "failed to load wasm binary file at '" + binaryFile + "'"; + throw `failed to load wasm binary file at '${binaryFile}'`; } return response['arrayBuffer'](); }).catch(() => getBinarySync(binaryFile)); @@ -982,7 +982,7 @@ function createWasm() { wasmMemory = wasmExports['memory']; {{{ receivedSymbol('wasmMemory') }}} #if ASSERTIONS - assert(wasmMemory, "memory not found in wasm exports"); + assert(wasmMemory, 'memory not found in wasm exports'); // This assertion doesn't hold when emscripten is run in --post-link // mode. // TODO(sbc): Read INITIAL_MEMORY out of the wasm file in post-link mode. @@ -998,7 +998,7 @@ function createWasm() { wasmTable = wasmExports['__indirect_function_table']; {{{ receivedSymbol('wasmTable') }}} #if ASSERTIONS && !PURE_WASI - assert(wasmTable, "table not found in wasm exports"); + assert(wasmTable, 'table not found in wasm exports'); #endif #if AUDIO_WORKLET diff --git a/src/shell.js b/src/shell.js index f42ddc86fe97b..3526116fe065a 100644 --- a/src/shell.js +++ b/src/shell.js @@ -382,7 +382,7 @@ if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) { if (scriptDirectory.startsWith('blob:')) { scriptDirectory = ''; } else { - scriptDirectory = scriptDirectory.substr(0, scriptDirectory.replace(/[?#].*/, "").lastIndexOf('/')+1); + scriptDirectory = scriptDirectory.substr(0, scriptDirectory.replace(/[?#].*/, '').lastIndexOf('/')+1); } #if ENVIRONMENT && ASSERTIONS @@ -492,19 +492,19 @@ assert( #endif // PTHREADS #if !ENVIRONMENT_MAY_BE_WEB -assert(!ENVIRONMENT_IS_WEB, "web environment detected but not enabled at build time. Add 'web' to `-sENVIRONMENT` to enable."); +assert(!ENVIRONMENT_IS_WEB, 'web environment detected but not enabled at build time. Add `web` to `-sENVIRONMENT` to enable.'); #endif #if !ENVIRONMENT_MAY_BE_WORKER -assert(!ENVIRONMENT_IS_WORKER, "worker environment detected but not enabled at build time. Add 'worker' to `-sENVIRONMENT` to enable."); +assert(!ENVIRONMENT_IS_WORKER, 'worker environment detected but not enabled at build time. Add `worker` to `-sENVIRONMENT` to enable.'); #endif #if !ENVIRONMENT_MAY_BE_NODE -assert(!ENVIRONMENT_IS_NODE, "node environment detected but not enabled at build time. Add 'node' to `-sENVIRONMENT` to enable."); +assert(!ENVIRONMENT_IS_NODE, 'node environment detected but not enabled at build time. Add `node` to `-sENVIRONMENT` to enable.'); #endif #if !ENVIRONMENT_MAY_BE_SHELL -assert(!ENVIRONMENT_IS_SHELL, "shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable."); +assert(!ENVIRONMENT_IS_SHELL, 'shell environment detected but not enabled at build time. Add `shell` to `-sENVIRONMENT` to enable.'); #endif #endif // ASSERTIONS diff --git a/test/other/metadce/test_metadce_cxx_ctors1.jssize b/test/other/metadce/test_metadce_cxx_ctors1.jssize index 8c1294d6de6b5..51e8a38986449 100644 --- a/test/other/metadce/test_metadce_cxx_ctors1.jssize +++ b/test/other/metadce/test_metadce_cxx_ctors1.jssize @@ -1 +1 @@ -24684 +24683 diff --git a/test/other/metadce/test_metadce_cxx_ctors2.jssize b/test/other/metadce/test_metadce_cxx_ctors2.jssize index e05d7e09ca23a..e9737da1ce9cc 100644 --- a/test/other/metadce/test_metadce_cxx_ctors2.jssize +++ b/test/other/metadce/test_metadce_cxx_ctors2.jssize @@ -1 +1 @@ -24652 +24651 diff --git a/test/other/metadce/test_metadce_cxx_except.gzsize b/test/other/metadce/test_metadce_cxx_except.gzsize index d817e31f8830c..1d58657569060 100644 --- a/test/other/metadce/test_metadce_cxx_except.gzsize +++ b/test/other/metadce/test_metadce_cxx_except.gzsize @@ -1 +1 @@ -11016 +11015 diff --git a/test/other/metadce/test_metadce_cxx_except.jssize b/test/other/metadce/test_metadce_cxx_except.jssize index 9b916de9ea112..6a6dc7c715c97 100644 --- a/test/other/metadce/test_metadce_cxx_except.jssize +++ b/test/other/metadce/test_metadce_cxx_except.jssize @@ -1 +1 @@ -28574 +28573 diff --git a/test/other/metadce/test_metadce_cxx_except_wasm.gzsize b/test/other/metadce/test_metadce_cxx_except_wasm.gzsize index b2429c1bde8c3..3a31f4b39a85b 100644 --- a/test/other/metadce/test_metadce_cxx_except_wasm.gzsize +++ b/test/other/metadce/test_metadce_cxx_except_wasm.gzsize @@ -1 +1 @@ -9904 +9903 diff --git a/test/other/metadce/test_metadce_cxx_except_wasm.jssize b/test/other/metadce/test_metadce_cxx_except_wasm.jssize index 31c4fea6cd154..7ad84412db248 100644 --- a/test/other/metadce/test_metadce_cxx_except_wasm.jssize +++ b/test/other/metadce/test_metadce_cxx_except_wasm.jssize @@ -1 +1 @@ -24577 +24576 diff --git a/test/other/metadce/test_metadce_cxx_mangle.jssize b/test/other/metadce/test_metadce_cxx_mangle.jssize index 9b916de9ea112..6a6dc7c715c97 100644 --- a/test/other/metadce/test_metadce_cxx_mangle.jssize +++ b/test/other/metadce/test_metadce_cxx_mangle.jssize @@ -1 +1 @@ -28574 +28573 diff --git a/test/other/metadce/test_metadce_cxx_noexcept.jssize b/test/other/metadce/test_metadce_cxx_noexcept.jssize index 8c1294d6de6b5..51e8a38986449 100644 --- a/test/other/metadce/test_metadce_cxx_noexcept.jssize +++ b/test/other/metadce/test_metadce_cxx_noexcept.jssize @@ -1 +1 @@ -24684 +24683 diff --git a/test/other/metadce/test_metadce_cxx_wasmfs.gzsize b/test/other/metadce/test_metadce_cxx_wasmfs.gzsize index cc1d64bcf857b..7ac3c34e4749d 100644 --- a/test/other/metadce/test_metadce_cxx_wasmfs.gzsize +++ b/test/other/metadce/test_metadce_cxx_wasmfs.gzsize @@ -1 +1 @@ -5253 +5252 diff --git a/test/other/metadce/test_metadce_cxx_wasmfs.jssize b/test/other/metadce/test_metadce_cxx_wasmfs.jssize index 43299f4d76361..9b7fbde87a78a 100644 --- a/test/other/metadce/test_metadce_cxx_wasmfs.jssize +++ b/test/other/metadce/test_metadce_cxx_wasmfs.jssize @@ -1 +1 @@ -12140 +12139 diff --git a/test/other/metadce/test_metadce_files_js_fs.gzsize b/test/other/metadce/test_metadce_files_js_fs.gzsize index df001baddeb97..3e457d7772948 100644 --- a/test/other/metadce/test_metadce_files_js_fs.gzsize +++ b/test/other/metadce/test_metadce_files_js_fs.gzsize @@ -1 +1 @@ -7875 +7874 diff --git a/test/other/metadce/test_metadce_files_js_fs.jssize b/test/other/metadce/test_metadce_files_js_fs.jssize index ab353b59b1d11..0677ec7a1898e 100644 --- a/test/other/metadce/test_metadce_files_js_fs.jssize +++ b/test/other/metadce/test_metadce_files_js_fs.jssize @@ -1 +1 @@ -19706 +19705 diff --git a/test/other/metadce/test_metadce_files_wasmfs.gzsize b/test/other/metadce/test_metadce_files_wasmfs.gzsize index 98c1eee86d70c..01e0503f2ad86 100644 --- a/test/other/metadce/test_metadce_files_wasmfs.gzsize +++ b/test/other/metadce/test_metadce_files_wasmfs.gzsize @@ -1 +1 @@ -3167 +3168 diff --git a/test/other/metadce/test_metadce_files_wasmfs.jssize b/test/other/metadce/test_metadce_files_wasmfs.jssize index bc1c8c1d7c441..56fe011d63d89 100644 --- a/test/other/metadce/test_metadce_files_wasmfs.jssize +++ b/test/other/metadce/test_metadce_files_wasmfs.jssize @@ -1 +1 @@ -6887 +6886 diff --git a/test/other/metadce/test_metadce_hello_O0.gzsize b/test/other/metadce/test_metadce_hello_O0.gzsize index e8724d9258281..e733a2b81273c 100644 --- a/test/other/metadce/test_metadce_hello_O0.gzsize +++ b/test/other/metadce/test_metadce_hello_O0.gzsize @@ -1 +1 @@ -8416 +8412 diff --git a/test/other/metadce/test_metadce_hello_O0.jssize b/test/other/metadce/test_metadce_hello_O0.jssize index b1a4f3bf50097..682f073dce810 100644 --- a/test/other/metadce/test_metadce_hello_O0.jssize +++ b/test/other/metadce/test_metadce_hello_O0.jssize @@ -1 +1 @@ -23086 +23081 diff --git a/test/other/metadce/test_metadce_hello_O1.gzsize b/test/other/metadce/test_metadce_hello_O1.gzsize index a3d09e35c495c..75324411061a4 100644 --- a/test/other/metadce/test_metadce_hello_O1.gzsize +++ b/test/other/metadce/test_metadce_hello_O1.gzsize @@ -1 +1 @@ -3020 +3019 diff --git a/test/other/metadce/test_metadce_hello_O1.jssize b/test/other/metadce/test_metadce_hello_O1.jssize index eee430fe4f415..8236dd573f5dd 100644 --- a/test/other/metadce/test_metadce_hello_O1.jssize +++ b/test/other/metadce/test_metadce_hello_O1.jssize @@ -1 +1 @@ -7787 +7782 diff --git a/test/other/metadce/test_metadce_hello_O2.gzsize b/test/other/metadce/test_metadce_hello_O2.gzsize index ec65132fb76ee..4633262609070 100644 --- a/test/other/metadce/test_metadce_hello_O2.gzsize +++ b/test/other/metadce/test_metadce_hello_O2.gzsize @@ -1 +1 @@ -2664 +2663 diff --git a/test/other/metadce/test_metadce_hello_O2.jssize b/test/other/metadce/test_metadce_hello_O2.jssize index 44a367319653a..f8424b9ea0522 100644 --- a/test/other/metadce/test_metadce_hello_O2.jssize +++ b/test/other/metadce/test_metadce_hello_O2.jssize @@ -1 +1 @@ -5542 +5541 diff --git a/test/other/metadce/test_metadce_hello_O3.jssize b/test/other/metadce/test_metadce_hello_O3.jssize index e9e79fa6d52f8..531434add7550 100644 --- a/test/other/metadce/test_metadce_hello_O3.jssize +++ b/test/other/metadce/test_metadce_hello_O3.jssize @@ -1 +1 @@ -5388 +5387 diff --git a/test/other/metadce/test_metadce_hello_Os.jssize b/test/other/metadce/test_metadce_hello_Os.jssize index e9e79fa6d52f8..531434add7550 100644 --- a/test/other/metadce/test_metadce_hello_Os.jssize +++ b/test/other/metadce/test_metadce_hello_Os.jssize @@ -1 +1 @@ -5388 +5387 diff --git a/test/other/metadce/test_metadce_hello_Oz.jssize b/test/other/metadce/test_metadce_hello_Oz.jssize index c19623257be4b..35014c71983c6 100644 --- a/test/other/metadce/test_metadce_hello_Oz.jssize +++ b/test/other/metadce/test_metadce_hello_Oz.jssize @@ -1 +1 @@ -5355 +5354 diff --git a/test/other/metadce/test_metadce_hello_dylink.gzsize b/test/other/metadce/test_metadce_hello_dylink.gzsize index 0dcddfe2d19df..7f2050d840f80 100644 --- a/test/other/metadce/test_metadce_hello_dylink.gzsize +++ b/test/other/metadce/test_metadce_hello_dylink.gzsize @@ -1 +1 @@ -6486 +6485 diff --git a/test/other/metadce/test_metadce_hello_dylink.jssize b/test/other/metadce/test_metadce_hello_dylink.jssize index 0866bf9610248..ad0d8dc7cb5a7 100644 --- a/test/other/metadce/test_metadce_hello_dylink.jssize +++ b/test/other/metadce/test_metadce_hello_dylink.jssize @@ -1 +1 @@ -14401 +14400 diff --git a/test/other/metadce/test_metadce_hello_export_nothing.gzsize b/test/other/metadce/test_metadce_hello_export_nothing.gzsize index 02088bab762cd..d71bdf5f8f1f2 100644 --- a/test/other/metadce/test_metadce_hello_export_nothing.gzsize +++ b/test/other/metadce/test_metadce_hello_export_nothing.gzsize @@ -1 +1 @@ -1932 +1933 diff --git a/test/other/metadce/test_metadce_hello_export_nothing.jssize b/test/other/metadce/test_metadce_hello_export_nothing.jssize index 3c32659ce04bd..152e03f867447 100644 --- a/test/other/metadce/test_metadce_hello_export_nothing.jssize +++ b/test/other/metadce/test_metadce_hello_export_nothing.jssize @@ -1 +1 @@ -4174 +4173 diff --git a/test/other/metadce/test_metadce_hello_wasmfs.jssize b/test/other/metadce/test_metadce_hello_wasmfs.jssize index e9e79fa6d52f8..531434add7550 100644 --- a/test/other/metadce/test_metadce_hello_wasmfs.jssize +++ b/test/other/metadce/test_metadce_hello_wasmfs.jssize @@ -1 +1 @@ -5388 +5387 diff --git a/test/other/metadce/test_metadce_libcxxabi_message_O3.gzsize b/test/other/metadce/test_metadce_libcxxabi_message_O3.gzsize index 28bcf886cd53a..5e7c8b88a0264 100644 --- a/test/other/metadce/test_metadce_libcxxabi_message_O3.gzsize +++ b/test/other/metadce/test_metadce_libcxxabi_message_O3.gzsize @@ -1 +1 @@ -2165 +2164 diff --git a/test/other/metadce/test_metadce_libcxxabi_message_O3.jssize b/test/other/metadce/test_metadce_libcxxabi_message_O3.jssize index ae6d064561fe5..2cea19324829c 100644 --- a/test/other/metadce/test_metadce_libcxxabi_message_O3.jssize +++ b/test/other/metadce/test_metadce_libcxxabi_message_O3.jssize @@ -1 +1 @@ -4670 +4669 diff --git a/test/other/metadce/test_metadce_libcxxabi_message_O3_standalone.jssize b/test/other/metadce/test_metadce_libcxxabi_message_O3_standalone.jssize index db52ff341dbbf..4f652d136a346 100644 --- a/test/other/metadce/test_metadce_libcxxabi_message_O3_standalone.jssize +++ b/test/other/metadce/test_metadce_libcxxabi_message_O3_standalone.jssize @@ -1 +1 @@ -4721 +4720 diff --git a/test/other/metadce/test_metadce_mem_O3.gzsize b/test/other/metadce/test_metadce_mem_O3.gzsize index 9673c92a0c6e4..1da5938934e27 100644 --- a/test/other/metadce/test_metadce_mem_O3.gzsize +++ b/test/other/metadce/test_metadce_mem_O3.gzsize @@ -1 +1 @@ -2618 +2617 diff --git a/test/other/metadce/test_metadce_mem_O3.jssize b/test/other/metadce/test_metadce_mem_O3.jssize index b26d474ac80a3..76674f153193b 100644 --- a/test/other/metadce/test_metadce_mem_O3.jssize +++ b/test/other/metadce/test_metadce_mem_O3.jssize @@ -1 +1 @@ -5569 +5568 diff --git a/test/other/metadce/test_metadce_mem_O3_grow.jssize b/test/other/metadce/test_metadce_mem_O3_grow.jssize index 0d610d1996601..b8532c27386e8 100644 --- a/test/other/metadce/test_metadce_mem_O3_grow.jssize +++ b/test/other/metadce/test_metadce_mem_O3_grow.jssize @@ -1 +1 @@ -5892 +5891 diff --git a/test/other/metadce/test_metadce_mem_O3_grow_standalone.gzsize b/test/other/metadce/test_metadce_mem_O3_grow_standalone.gzsize index 9c251745dda72..70081150e1d5c 100644 --- a/test/other/metadce/test_metadce_mem_O3_grow_standalone.gzsize +++ b/test/other/metadce/test_metadce_mem_O3_grow_standalone.gzsize @@ -1 +1 @@ -2476 +2475 diff --git a/test/other/metadce/test_metadce_mem_O3_grow_standalone.jssize b/test/other/metadce/test_metadce_mem_O3_grow_standalone.jssize index 0e17bc69d644b..d5a3284157807 100644 --- a/test/other/metadce/test_metadce_mem_O3_grow_standalone.jssize +++ b/test/other/metadce/test_metadce_mem_O3_grow_standalone.jssize @@ -1 +1 @@ -5285 +5284 diff --git a/test/other/metadce/test_metadce_mem_O3_standalone.jssize b/test/other/metadce/test_metadce_mem_O3_standalone.jssize index ade008bbc013e..d0f91610a3485 100644 --- a/test/other/metadce/test_metadce_mem_O3_standalone.jssize +++ b/test/other/metadce/test_metadce_mem_O3_standalone.jssize @@ -1 +1 @@ -5215 +5214 diff --git a/test/other/metadce/test_metadce_mem_O3_standalone_lib.gzsize b/test/other/metadce/test_metadce_mem_O3_standalone_lib.gzsize index fdc64912d5c71..ee2583961172c 100644 --- a/test/other/metadce/test_metadce_mem_O3_standalone_lib.gzsize +++ b/test/other/metadce/test_metadce_mem_O3_standalone_lib.gzsize @@ -1 +1 @@ -2186 +2187 diff --git a/test/other/metadce/test_metadce_mem_O3_standalone_lib.jssize b/test/other/metadce/test_metadce_mem_O3_standalone_lib.jssize index db52ff341dbbf..4f652d136a346 100644 --- a/test/other/metadce/test_metadce_mem_O3_standalone_lib.jssize +++ b/test/other/metadce/test_metadce_mem_O3_standalone_lib.jssize @@ -1 +1 @@ -4721 +4720 diff --git a/test/other/metadce/test_metadce_mem_O3_standalone_narg.jssize b/test/other/metadce/test_metadce_mem_O3_standalone_narg.jssize index db52ff341dbbf..4f652d136a346 100644 --- a/test/other/metadce/test_metadce_mem_O3_standalone_narg.jssize +++ b/test/other/metadce/test_metadce_mem_O3_standalone_narg.jssize @@ -1 +1 @@ -4721 +4720 diff --git a/test/other/metadce/test_metadce_mem_O3_standalone_narg_flto.jssize b/test/other/metadce/test_metadce_mem_O3_standalone_narg_flto.jssize index db52ff341dbbf..4f652d136a346 100644 --- a/test/other/metadce/test_metadce_mem_O3_standalone_narg_flto.jssize +++ b/test/other/metadce/test_metadce_mem_O3_standalone_narg_flto.jssize @@ -1 +1 @@ -4721 +4720 diff --git a/test/other/metadce/test_metadce_minimal_64.gzsize b/test/other/metadce/test_metadce_minimal_64.gzsize index 1c38c9071a6a5..57bf58ca801bf 100644 --- a/test/other/metadce/test_metadce_minimal_64.gzsize +++ b/test/other/metadce/test_metadce_minimal_64.gzsize @@ -1 +1 @@ -1725 +1727 diff --git a/test/other/metadce/test_metadce_minimal_64.jssize b/test/other/metadce/test_metadce_minimal_64.jssize index 2ae555a2e692c..03c58a00d4d8e 100644 --- a/test/other/metadce/test_metadce_minimal_64.jssize +++ b/test/other/metadce/test_metadce_minimal_64.jssize @@ -1 +1 @@ -3647 +3646 diff --git a/test/other/metadce/test_metadce_minimal_O0.gzsize b/test/other/metadce/test_metadce_minimal_O0.gzsize index 60e6c3459aebb..7b5514dfe63ca 100644 --- a/test/other/metadce/test_metadce_minimal_O0.gzsize +++ b/test/other/metadce/test_metadce_minimal_O0.gzsize @@ -1 +1 @@ -7245 +7242 diff --git a/test/other/metadce/test_metadce_minimal_O0.jssize b/test/other/metadce/test_metadce_minimal_O0.jssize index d05a3bfb161a4..0677ec7a1898e 100644 --- a/test/other/metadce/test_metadce_minimal_O0.jssize +++ b/test/other/metadce/test_metadce_minimal_O0.jssize @@ -1 +1 @@ -19710 +19705 diff --git a/test/other/metadce/test_metadce_minimal_O1.jssize b/test/other/metadce/test_metadce_minimal_O1.jssize index a89c4915e6ddf..ffe86f8409599 100644 --- a/test/other/metadce/test_metadce_minimal_O1.jssize +++ b/test/other/metadce/test_metadce_minimal_O1.jssize @@ -1 +1 @@ -4437 +4432 diff --git a/test/other/metadce/test_metadce_minimal_O2.gzsize b/test/other/metadce/test_metadce_minimal_O2.gzsize index 8d0d61d9f3dfd..b385a42d20fd6 100644 --- a/test/other/metadce/test_metadce_minimal_O2.gzsize +++ b/test/other/metadce/test_metadce_minimal_O2.gzsize @@ -1 +1 @@ -1661 +1663 diff --git a/test/other/metadce/test_metadce_minimal_O2.jssize b/test/other/metadce/test_metadce_minimal_O2.jssize index eb698d4c6cb43..f35c48ca69ee6 100644 --- a/test/other/metadce/test_metadce_minimal_O2.jssize +++ b/test/other/metadce/test_metadce_minimal_O2.jssize @@ -1 +1 @@ -3374 +3373 diff --git a/test/other/metadce/test_metadce_minimal_O3.gzsize b/test/other/metadce/test_metadce_minimal_O3.gzsize index 0b2057f3a66f3..ff0ba09899ac4 100644 --- a/test/other/metadce/test_metadce_minimal_O3.gzsize +++ b/test/other/metadce/test_metadce_minimal_O3.gzsize @@ -1 +1 @@ -1619 +1621 diff --git a/test/other/metadce/test_metadce_minimal_O3.jssize b/test/other/metadce/test_metadce_minimal_O3.jssize index b71f764bac857..4f203830588fd 100644 --- a/test/other/metadce/test_metadce_minimal_O3.jssize +++ b/test/other/metadce/test_metadce_minimal_O3.jssize @@ -1 +1 @@ -3324 +3323 diff --git a/test/other/metadce/test_metadce_minimal_Os.gzsize b/test/other/metadce/test_metadce_minimal_Os.gzsize index 0b2057f3a66f3..ff0ba09899ac4 100644 --- a/test/other/metadce/test_metadce_minimal_Os.gzsize +++ b/test/other/metadce/test_metadce_minimal_Os.gzsize @@ -1 +1 @@ -1619 +1621 diff --git a/test/other/metadce/test_metadce_minimal_Os.jssize b/test/other/metadce/test_metadce_minimal_Os.jssize index b71f764bac857..4f203830588fd 100644 --- a/test/other/metadce/test_metadce_minimal_Os.jssize +++ b/test/other/metadce/test_metadce_minimal_Os.jssize @@ -1 +1 @@ -3324 +3323 diff --git a/test/other/metadce/test_metadce_minimal_Oz-ctors.gzsize b/test/other/metadce/test_metadce_minimal_Oz-ctors.gzsize index 7e73f8fffa5b9..9e8e0f451d44d 100644 --- a/test/other/metadce/test_metadce_minimal_Oz-ctors.gzsize +++ b/test/other/metadce/test_metadce_minimal_Oz-ctors.gzsize @@ -1 +1 @@ -1611 +1612 diff --git a/test/other/metadce/test_metadce_minimal_Oz-ctors.jssize b/test/other/metadce/test_metadce_minimal_Oz-ctors.jssize index 99bd38128d530..a64889ca1bef8 100644 --- a/test/other/metadce/test_metadce_minimal_Oz-ctors.jssize +++ b/test/other/metadce/test_metadce_minimal_Oz-ctors.jssize @@ -1 +1 @@ -3309 +3308 diff --git a/test/other/metadce/test_metadce_minimal_Oz.gzsize b/test/other/metadce/test_metadce_minimal_Oz.gzsize index 0b2057f3a66f3..ff0ba09899ac4 100644 --- a/test/other/metadce/test_metadce_minimal_Oz.gzsize +++ b/test/other/metadce/test_metadce_minimal_Oz.gzsize @@ -1 +1 @@ -1619 +1621 diff --git a/test/other/metadce/test_metadce_minimal_Oz.jssize b/test/other/metadce/test_metadce_minimal_Oz.jssize index b71f764bac857..4f203830588fd 100644 --- a/test/other/metadce/test_metadce_minimal_Oz.jssize +++ b/test/other/metadce/test_metadce_minimal_Oz.jssize @@ -1 +1 @@ -3324 +3323 diff --git a/test/other/metadce/test_metadce_minimal_pthreads.jssize b/test/other/metadce/test_metadce_minimal_pthreads.jssize index 62e7ea915d79d..2d765fee3384b 100644 --- a/test/other/metadce/test_metadce_minimal_pthreads.jssize +++ b/test/other/metadce/test_metadce_minimal_pthreads.jssize @@ -1 +1 @@ -13666 +13665 diff --git a/test/other/metadce/test_metadce_minimal_wasmfs.gzsize b/test/other/metadce/test_metadce_minimal_wasmfs.gzsize index 0b2057f3a66f3..ff0ba09899ac4 100644 --- a/test/other/metadce/test_metadce_minimal_wasmfs.gzsize +++ b/test/other/metadce/test_metadce_minimal_wasmfs.gzsize @@ -1 +1 @@ -1619 +1621 diff --git a/test/other/metadce/test_metadce_minimal_wasmfs.jssize b/test/other/metadce/test_metadce_minimal_wasmfs.jssize index b71f764bac857..4f203830588fd 100644 --- a/test/other/metadce/test_metadce_minimal_wasmfs.jssize +++ b/test/other/metadce/test_metadce_minimal_wasmfs.jssize @@ -1 +1 @@ -3324 +3323 diff --git a/test/other/test_unoptimized_code_size.js.size b/test/other/test_unoptimized_code_size.js.size index b69f1a3d2edd7..6e433447912aa 100644 --- a/test/other/test_unoptimized_code_size.js.size +++ b/test/other/test_unoptimized_code_size.js.size @@ -1 +1 @@ -58262 +58257 diff --git a/test/other/test_unoptimized_code_size_no_asserts.js.size b/test/other/test_unoptimized_code_size_no_asserts.js.size index 83d62a2951639..66e5f178ea78b 100644 --- a/test/other/test_unoptimized_code_size_no_asserts.js.size +++ b/test/other/test_unoptimized_code_size_no_asserts.js.size @@ -1 +1 @@ -31646 +31641 diff --git a/test/other/test_unoptimized_code_size_strict.js.size b/test/other/test_unoptimized_code_size_strict.js.size index d2be4921f0ecb..b682bc621a1bd 100644 --- a/test/other/test_unoptimized_code_size_strict.js.size +++ b/test/other/test_unoptimized_code_size_strict.js.size @@ -1 +1 @@ -57104 +57099 diff --git a/test/test_other.py b/test/test_other.py index b5a60047b0b09..437c88a9d829e 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -12087,8 +12087,8 @@ def test_missing_malloc_export(self): } ''') self.do_runf('unincluded_malloc.c', ( - "malloc() called but not included in the build - add '_malloc' to EXPORTED_FUNCTIONS", - "free() called but not included in the build - add '_free' to EXPORTED_FUNCTIONS")) + 'malloc() called but not included in the build - add `_malloc` to EXPORTED_FUNCTIONS', + 'free() called but not included in the build - add `_free` to EXPORTED_FUNCTIONS'), assert_all=True) def test_getrusage(self): self.do_runf('other/test_getrusage.c') diff --git a/tools/emscripten.py b/tools/emscripten.py index 37b9be8d2c86e..dd65254797943 100644 --- a/tools/emscripten.py +++ b/tools/emscripten.py @@ -801,7 +801,7 @@ def install_wrapper(sym): args = ', '.join(args) wrapper += f"({args}) => ({mangled} = {exported}wasmExports['{name}'])({args});" else: - wrapper += 'wasmExports["%s"]' % name + wrapper += f"wasmExports['{name}']" wrappers.append(wrapper) return wrappers