We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1
1 parent f3cdd7c commit c06ebb0Copy full SHA for c06ebb0
src/lib/libpthread.js
@@ -352,10 +352,6 @@ var LibraryPThread = {
352
}
353
354
355
-#if ASSERTIONS
356
- worker.workerID = PThread.nextWorkerID++;
357
-#endif
358
-
359
// Ask the new worker to load up the Emscripten-compiled page. This is a heavy operation.
360
worker.postMessage({
361
cmd: 'load',
@@ -464,6 +460,9 @@ var LibraryPThread = {
464
460
#endif
465
461
worker = new Worker(pthreadMainJs, {{{ pthreadWorkerOptions }}});
466
462
#endif // EXPORT_ES6
463
+#if ASSERTIONS
+ worker.workerID = PThread.nextWorkerID++;
+#endif
467
PThread.unusedWorkers.push(worker);
468
},
469
0 commit comments