From 03a76f33ad0808c659116721a757958ad054dd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 13 May 2024 00:38:22 +0100 Subject: fix(ext/node): process.uptime works without this (#23786) Fixes https://github.com/denoland/deno/issues/23761 Co-authored-by: Satya Rohith --- tests/unit_node/process_test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts index b92be2f3c..15ad052bf 100644 --- a/tests/unit_node/process_test.ts +++ b/tests/unit_node/process_test.ts @@ -1083,3 +1083,12 @@ Deno.test({ process.setSourceMapsEnabled(true); // noop }, }); + +// Regression test for https://github.com/denoland/deno/issues/23761 +Deno.test({ + name: "process.uptime without this", + fn() { + const v = (0, process.uptime)(); + assert(v >= 0); + }, +}); -- cgit v1.2.3