Skip to content

Commit 9a9c055

Browse files
committed
Remove early return from exitRuntime(). NFC
`exitRuntime()` is never called when `ENVIRONMENT_IS_PTHREAD` is true.
1 parent 4a3263e commit 9a9c055

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/preamble.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,6 @@ function exitRuntime() {
271271
#if STACK_OVERFLOW_CHECK
272272
checkStackCookie();
273273
#endif
274-
#if PTHREADS
275-
if (ENVIRONMENT_IS_PTHREAD) return; // PThreads reuse the runtime from the main thread.
276-
#endif
277274
#if !STANDALONE_WASM
278275
___funcs_on_exit(); // Native atexit() functions
279276
#endif

0 commit comments

Comments
 (0)