| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
An empty `Local<>` already indicates that an exception is pending, so there is no need to throw an exception. In the case of Workers, this could override a `.terminate()` call.
|
@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/2610/pipeline |
Sorry, something went wrong.
| if (!process.env.HAS_STARTED_WORKER) { | ||
| process.env.HAS_STARTED_WORKER = 1; | ||
| const w = new Worker(__filename); | ||
| setTimeout(() => w.terminate(), 50); |
There was a problem hiding this comment.
Is using the 'online' event here instead an option?
Sorry, something went wrong.
There was a problem hiding this comment.
@cjihrig I’ve added that but kept the timeout, it still seems to make this fail more reliably locally (with the node master executable).
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/20787/ (:white_check_mark:) |
Sorry, something went wrong.
An empty `Local<>` already indicates that an exception is pending, so there is no need to throw an exception. In the case of Workers, this could override a `.terminate()` call. PR-URL: #26112 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com>
An empty `Local<>` already indicates that an exception is pending, so there is no need to throw an exception. In the case of Workers, this could override a `.terminate()` call. PR-URL: #26112 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com>
An empty `Local<>` already indicates that an exception is pending, so there is no need to throw an exception. In the case of Workers, this could override a `.terminate()` call. PR-URL: #26112 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
An empty Local<> already indicates that an exception is pending,
so there is no need to throw an exception. In the case of Workers,
this could override a .terminate() call.
Checklist