diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-05-13 00:38:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 23:38:22 +0000 |
commit | 03a76f33ad0808c659116721a757958ad054dd25 (patch) | |
tree | bd985775693d065522331ef99af46a92aded8288 /tests/unit_node/process_test.ts | |
parent | 2b62a5b8140f884c35a4e1ae732a9de3dd8c6114 (diff) |
fix(ext/node): process.uptime works without this (#23786)
Fixes https://github.com/denoland/deno/issues/23761
Co-authored-by: Satya Rohith <me@satyarohith.com>
Diffstat (limited to 'tests/unit_node/process_test.ts')
-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 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); + }, +}); |