File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ var LibraryPThread = {
75
75
'$removeRunDependency' ,
76
76
#endif
77
77
'$spawnThread' ,
78
+ #if EXIT_RUNTIME
79
+ '$exitOnMainThread' ,
80
+ #endif
78
81
'_emscripten_thread_free_data' ,
79
82
'exit' ,
80
83
#if PTHREADS_DEBUG || ASSERTIONS
@@ -295,10 +298,12 @@ var LibraryPThread = {
295
298
#endif
296
299
} else if ( cmd === 'callHandler' ) {
297
300
Module [ d . handler ] ( ...d . args ) ;
301
+ #if EXIT_RUNTIME
298
302
} else if ( cmd === 'processExit' ) {
299
303
try {
300
304
exitOnMainThread ( d . code ) ;
301
305
} catch ( e ) { } // Swallow the ExitStatus exception, since we need to unwind here.
306
+ #endif
302
307
} else if ( cmd ) {
303
308
// The received message looks like something that should be handled by this message
304
309
// handler, (since there is a e.data.cmd field present), but is not one of the
You can’t perform that action at this time.
0 commit comments