/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/node/worker_threads/__test__.jsonc
100 строк
4 KB
nathanwhitbot
fix(node): propagate source thread id to `process` `workerMessage` event (#35374)
20 июн 2026, 12:35
Не верифицирован
20 июн 2026, 12:35
da7c5a8
Код
Авторство
О чём код?
{ "tests": { "auto_exits": { // Test for https://github.com/denoland/deno/issues/22629 // Test for https://github.com/denoland/deno/issues/22934 "args": "run --quiet --allow-read auto_exits.mjs", "output": "auto_exits.out", "exitCode": 0 }, "message_port": { "args": "run --allow-env --allow-read message_port.mjs", "output": "message_port.out", "exitCode": 0 }, "message_port_transfer": { "args": "run --quiet --allow-read message_port_transfer.mjs", "output": "message_port_transfer.out", "exitCode": 0 }, "message_port_removelistener": { "args": "run message_port_removelistener.mjs", "output": "message_port_removelistener.out", // Note: successful exit asserts that the test passed "exitCode": 0 }, "message_port_dedupe": { // Test for https://github.com/denoland/deno/issues/33373 "args": "run message_port_dedupe.mjs", "output": "message_port_dedupe.out", "exitCode": 0 }, "message_port_unref": { "args": "run --allow-env --allow-read message_port_unref.mjs", "output": "message_port_unref.out", "exitCode": 0 }, "broadcast_channel": { "args": "run --quiet --allow-read --unstable-broadcast-channel broadcast_channel.mjs", "output": "hello from worker\n", "exitCode": 0 }, "broadcast_channel_sab": { "args": "run --quiet --allow-read --unstable-broadcast-channel broadcast_channel_sab.mjs", "output": "broadcast_channel_sab.out", "exitCode": 0 }, "parent_port_unref": { "args": "run --allow-env --allow-read message_port_unref.mjs", "envs": { "PARENT_PORT": "1" }, "output": "message_port_unref.out", "exitCode": 0 }, "refed_messageport_idle": { // Test for https://github.com/denoland/deno/issues/23169 // A worker holding a refed transferable MessagePort must not be // terminated on idle. "args": "run --allow-read refed_messageport_idle.mjs", "output": "refed_messageport_idle.out", "exitCode": 0 }, "refed_messageport_holder": { // Test for https://github.com/denoland/deno/issues/23169 // A worker kept alive purely by a refed MessagePort (no message // listener) must not be terminated on idle. "args": "run --allow-read refed_messageport_holder.mjs", "output": "refed_messageport_holder.out", "exitCode": 0 }, "eval_cjs_require": { // Test for https://github.com/denoland/deno/issues/27181 "args": "run --quiet eval_cjs_require.mjs", "output": "ok\n", "exitCode": 0 }, "eval_sloppy_mode": { // Test for https://github.com/denoland/deno/issues/26739 // eval workers must run in sloppy mode (not strict/ESM) to match // Node.js behavior. Libraries like fflate depend on this. "args": "run --quiet eval_sloppy_mode.mjs", "output": "sloppy mode works, myGlobal=42\n", "exitCode": 0 }, "parent_port_isolation": { // Test for https://github.com/denoland/deno/issues/17171 "args": "run --quiet --allow-read parent_port_isolation.mjs", "output": "postMessage isolation: post_message_ok\nno double delivery: count:1\n", "exitCode": 0 }, "worker_message_source": { // Test for https://github.com/denoland/deno/issues/35369 // `process.on('workerMessage', (value, source))` must receive the // sender's thread id as `source`. "args": "run --quiet --allow-read worker_message_source.mjs", "output": "worker_message_source.out", "exitCode": 0 } } }