diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-03-08 16:31:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 17:31:11 +0100 |
commit | 93b9d114a4c87402fa82c3f59d6509179f1fd126 (patch) | |
tree | a64492d0aae2d7bb6808ef6d57e1b454297e52ff /tests/integration/npm_tests.rs | |
parent | d5b01e41586c05d2af0bcf361ed4eadd03d60765 (diff) |
refactor(ext/node): worker_threads.isMainThread setup (#22785)
This commit changes how we figure out if we're running on main
thread in `node:worker_threads` module. Instead of relying on quirky
"magic variable" for a name to check if we're on main thread, we are
now explicitly passing this information during bootstrapping of the
runtime. As a side effect, `WorkerOptions.name` is more useful
and matches what Node.js does more closely (though not fully).
Towards https://github.com/denoland/deno/issues/22783
Diffstat (limited to 'tests/integration/npm_tests.rs')
0 files changed, 0 insertions, 0 deletions