Skip to content

Commit ea937cf

Browse files
committed
Remove early return from exitRuntime(). NFC
`exitRuntime()` is never called when `ENVIRONMENT_IS_PTHREAD` is true.
1 parent 5cfb4b6 commit ea937cf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/preamble.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ function exitRuntime() {
196196
#if STACK_OVERFLOW_CHECK
197197
checkStackCookie();
198198
#endif
199-
{{{ runIfWorkerThread('return;') }}} // PThreads reuse the runtime from the main thread.
200199
#if !STANDALONE_WASM
201200
___funcs_on_exit(); // Native atexit() functions
202201
#endif

0 commit comments

Comments
 (0)