From 10ac3bb091e4060053298540225f0005d9d2bfdb Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 18 Jun 2024 16:33:03 +0530 Subject: fix(ext/node): make process.versions own property (#24240) --- tests/unit_node/process_test.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts index 24fd3909d..e15d37744 100644 --- a/tests/unit_node/process_test.ts +++ b/tests/unit_node/process_test.ts @@ -1116,3 +1116,7 @@ Deno.test("process.listeners - include SIG* events", () => { process.off("SIGINT", listener2); assertEquals(process.listeners("SIGINT").length, 0); }); + +Deno.test(function processVersionsOwnProperty() { + assert(Object.prototype.hasOwnProperty.call(process, "versions")); +}); -- cgit v1.2.3