summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/timers.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-02-16 14:30:14 +0100
committerGitHub <noreply@github.com>2023-02-16 14:30:14 +0100
commit4c2380af5c8561fc0a5f8279c1c7336680d026ed (patch)
tree616a0405b8aead38803ea7f893302a87b5001a5d /ext/node/polyfills/timers.ts
parent848e2c0d57febf744ed585702f314dc64bc8b4ae (diff)
test: add unit tests from std/node (#17794)
Adds two test files: "cli/tests/unit_node/process_test.ts" and "cli/tests/unit_node/child_process_test.ts" --------- Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'ext/node/polyfills/timers.ts')
-rw-r--r--ext/node/polyfills/timers.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/node/polyfills/timers.ts b/ext/node/polyfills/timers.ts
index 57ff71a38..5a650c1cc 100644
--- a/ext/node/polyfills/timers.ts
+++ b/ext/node/polyfills/timers.ts
@@ -7,9 +7,10 @@ import {
import { validateFunction } from "internal:deno_node/polyfills/internal/validators.mjs";
import { promisify } from "internal:deno_node/polyfills/internal/util.mjs";
export { setUnrefTimeout } from "internal:deno_node/polyfills/internal/timers.mjs";
+import * as timers from "internal:deno_web/02_timers.js";
-const clearTimeout_ = globalThis.clearTimeout;
-const clearInterval_ = globalThis.clearInterval;
+const clearTimeout_ = timers.clearTimeout;
+const clearInterval_ = timers.clearInterval;
export function setTimeout(
callback: (...args: unknown[]) => void,