diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-06-03 10:29:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 21:29:01 -0400 |
commit | eda43c46de12ed589fdbe62ba0574887cfbb3574 (patch) | |
tree | 9703b6c92b2e3ca21768d9ae6d82730c41e41157 /tests/unit_node/process_test.ts | |
parent | 754f21f0cd6b788ded48238c5acc3f635329d473 (diff) |
fix: validate integer values in `Deno.exitCode` setter (#24068)
Diffstat (limited to 'tests/unit_node/process_test.ts')
-rw-r--r-- | tests/unit_node/process_test.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts index 5e2fb69c2..24fd3909d 100644 --- a/tests/unit_node/process_test.ts +++ b/tests/unit_node/process_test.ts @@ -814,10 +814,6 @@ Deno.test("process.exitCode in should change exit code", async () => { 127, ); await exitCodeTest( - "import process from 'node:process'; process.exitCode = 2.5;", - 2, - ); - await exitCodeTest( "import process from 'node:process'; process.exitCode = '10';", 10, ); @@ -825,10 +821,6 @@ Deno.test("process.exitCode in should change exit code", async () => { "import process from 'node:process'; process.exitCode = '0x10';", 16, ); - await exitCodeTest( - "import process from 'node:process'; process.exitCode = NaN;", - 1, - ); }); Deno.test("Deno.exit should override process exit", async () => { |