summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_node/process_test.ts9
1 files changed, 9 insertions, 0 deletions
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);
+ },
+});