From 59d41c2aced5ac59f60ff27ba871e53db58b7e12 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 17 Jun 2026 09:21:24 -0700 Subject: [PATCH] Remove `calledRun` debug checks. NFC This is redundant since there is already an assertion in `initRuntime` which is the first thing this function calls. --- src/postamble.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/postamble.js b/src/postamble.js index d130ded126fbf..b3609328f5167 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();