diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/process_test.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts index 6b90a30ba..491a70bfc 100644 --- a/tests/unit_node/process_test.ts +++ b/tests/unit_node/process_test.ts @@ -1094,3 +1094,12 @@ Deno.test({ assert(v >= 0); }, }); + +// Test for https://github.com/denoland/deno/issues/23863 +Deno.test({ + name: "instantiate process constructor without 'new' keyword", + fn() { + // This would throw + process.constructor.call({}); + }, +}); |