diff --git a/src/postamble.js b/src/postamble.js index 39cb9b4c8452e..4260563310685 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -10,10 +10,6 @@ #include "source_map_support.js" #endif -#if ASSERTIONS -var calledRun; -#endif - #if STANDALONE_WASM && MAIN_READS_PARAMS var mainArgs = undefined; #endif @@ -115,11 +111,6 @@ function stackCheckInit() { #endif {{{ asyncIf(MODULARIZE || ASYNCIFY == 2 || expectToReceiveOnModule('setStatus') || '$runDependencies' in addedLibraryItems) }}}function run({{{ MAIN_READS_PARAMS ? 'args = programArgs' : '' }}}) { -#if ASSERTIONS - assert(!calledRun); - calledRun = true; -#endif - #if PTHREADS || WASM_WORKERS if ({{{ ENVIRONMENT_IS_WORKER_THREAD() }}}) { initRuntime(); diff --git a/test/codesize/test_codesize_hello_O0.json b/test/codesize/test_codesize_hello_O0.json index 7801c7b9f8b8f..f6f830508e7bd 100644 --- a/test/codesize/test_codesize_hello_O0.json +++ b/test/codesize/test_codesize_hello_O0.json @@ -1,10 +1,10 @@ { - "a.out.js": 23425, - "a.out.js.gz": 8505, + "a.out.js": 23400, + "a.out.js.gz": 8495, "a.out.nodebug.wasm": 15115, "a.out.nodebug.wasm.gz": 7464, - "total": 38540, - "total_gz": 15969, + "total": 38515, + "total_gz": 15959, "sent": [ "fd_write" ], diff --git a/test/codesize/test_codesize_minimal_O0.expected.js b/test/codesize/test_codesize_minimal_O0.expected.js index 8a27acdfbeecc..a940ef35cf597 100644 --- a/test/codesize/test_codesize_minimal_O0.expected.js +++ b/test/codesize/test_codesize_minimal_O0.expected.js @@ -1323,8 +1323,6 @@ var wasmImports = { // include: postamble.js // === Auto-generated postamble setup entry stuff === -var calledRun; - function stackCheckInit() { // This is normally called automatically during __wasm_call_ctors but need to // get these values before even running any of the ctors so we call it redundantly @@ -1335,8 +1333,6 @@ function stackCheckInit() { } function run() { - assert(!calledRun); - calledRun = true; stackCheckInit(); diff --git a/test/codesize/test_codesize_minimal_O0.json b/test/codesize/test_codesize_minimal_O0.json index 3228e0b26d512..24e52387c7357 100644 --- a/test/codesize/test_codesize_minimal_O0.json +++ b/test/codesize/test_codesize_minimal_O0.json @@ -1,10 +1,10 @@ { - "a.out.js": 18665, - "a.out.js.gz": 6759, + "a.out.js": 18643, + "a.out.js.gz": 6747, "a.out.nodebug.wasm": 1015, "a.out.nodebug.wasm.gz": 602, - "total": 19680, - "total_gz": 7361, + "total": 19658, + "total_gz": 7349, "sent": [], "imports": [], "exports": [ diff --git a/test/codesize/test_unoptimized_code_size.json b/test/codesize/test_unoptimized_code_size.json index 094dd70c77809..c33621e48e02a 100644 --- a/test/codesize/test_unoptimized_code_size.json +++ b/test/codesize/test_unoptimized_code_size.json @@ -1,16 +1,16 @@ { - "hello_world.js": 55193, - "hello_world.js.gz": 17384, + "hello_world.js": 55135, + "hello_world.js.gz": 17370, "hello_world.wasm": 15115, "hello_world.wasm.gz": 7464, "no_asserts.js": 25683, "no_asserts.js.gz": 8690, "no_asserts.wasm": 12229, "no_asserts.wasm.gz": 6004, - "strict.js": 52921, - "strict.js.gz": 16589, + "strict.js": 52863, + "strict.js.gz": 16574, "strict.wasm": 15115, "strict.wasm.gz": 7461, - "total": 176256, - "total_gz": 63592 + "total": 176140, + "total_gz": 63563 }