diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-08-29 12:18:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 12:18:25 +0900 |
commit | fb7092fb43d5a6e5a29ca5b2f0de6683ee55f3e5 (patch) | |
tree | b6d5107ac7a4c800fbd915e9041296aa113a7d12 /cli/tests/unit_node/process_test.ts | |
parent | bd034e360d036d9634d8526a6eea73979b3ad9e1 (diff) |
fix(ext/node): fix argv[1] in Worker (#20305)
Diffstat (limited to 'cli/tests/unit_node/process_test.ts')
-rw-r--r-- | cli/tests/unit_node/process_test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/unit_node/process_test.ts b/cli/tests/unit_node/process_test.ts index 461afb9f6..bcb7a9767 100644 --- a/cli/tests/unit_node/process_test.ts +++ b/cli/tests/unit_node/process_test.ts @@ -774,3 +774,15 @@ Deno.test({ assertEquals(process.title, "deno"); }, }); + +Deno.test({ + name: "process.argv[1] in Worker", + async fn() { + const worker = new Worker( + `data:text/javascript,import process from "node:process";console.log(process.argv[1]);`, + { type: "module" }, + ); + await delay(10); + worker.terminate(); + }, +}); |