Skip to content

Commit 85f6f2b

Browse files
committed
Remove re-entrancy check for another PR.
1 parent f84e74a commit 85f6f2b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/preamble.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,12 @@ function preMain() {
188188
#endif
189189

190190
#if EXIT_RUNTIME
191-
192-
#if ASSERTIONS
193-
var runtimeExiting = false;
194-
#endif
195-
196191
function exitRuntime() {
197192
#if RUNTIME_DEBUG
198193
dbg('exitRuntime');
199194
#endif
200195
#if ASSERTIONS
201196
assert(!runtimeExited);
202-
assert(!runtimeExiting, 'Re-entrant call to exitRuntime()! This can happen if an atexit() registered callback throws an exception.');
203-
runtimeExiting = true;
204197
#endif
205198
#if ASYNCIFY == 1 && ASSERTIONS
206199
// ASYNCIFY cannot be used once the runtime starts shutting down.

0 commit comments

Comments
 (0)