Skip to content

Commit b3fe7de

Browse files
Avoid "Unreachable code" error in libpthread.js (#25898)
When PTHREAD_POOL_DELAY_LOAD, the .js file will have 2 return statements next to each other, making the second unreachable.
1 parent 28d35a8 commit b3fe7de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/libpthread.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,9 @@ var LibraryPThread = {
417417
// Module['pthreadPoolReady'] promise.
418418
Module['pthreadPoolReady'] = pthreadPoolReady;
419419
return;
420-
#endif
420+
#else
421421
return pthreadPoolReady;
422+
#endif
422423
},
423424
#endif // PTHREAD_POOL_SIZE
424425

0 commit comments

Comments
 (0)