diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-08 14:34:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 18:34:08 +0000 |
commit | f3095b8d311c85f633d280a980f76062015f8974 (patch) | |
tree | 60537fb8016ae629abed07309389649be78b39d9 /ext/node/polyfills/internal/timers.mjs | |
parent | e4870d84be19f4ea768933522eff437f64963730 (diff) |
chore: upgrade to dprint 0.39 (#19768)
Diffstat (limited to 'ext/node/polyfills/internal/timers.mjs')
-rw-r--r-- | ext/node/polyfills/internal/timers.mjs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/node/polyfills/internal/timers.mjs b/ext/node/polyfills/internal/timers.mjs index c2e8c00e9..3dc5073c6 100644 --- a/ext/node/polyfills/internal/timers.mjs +++ b/ext/node/polyfills/internal/timers.mjs @@ -12,13 +12,16 @@ const { } = primordials; import { inspect } from "ext:deno_node/internal/util/inspect.mjs"; -import { validateFunction, validateNumber } from "ext:deno_node/internal/validators.mjs"; +import { + validateFunction, + validateNumber, +} from "ext:deno_node/internal/validators.mjs"; import { ERR_OUT_OF_RANGE } from "ext:deno_node/internal/errors.ts"; import { emitWarning } from "node:process"; import { - setTimeout as setTimeout_, clearTimeout as clearTimeout_, setInterval as setInterval_, + setTimeout as setTimeout_, } from "ext:deno_web/02_timers.js"; // Timeout values > TIMEOUT_MAX are set to 1. @@ -55,10 +58,10 @@ Timeout.prototype[createTimer] = function () { const callback = this._onTimeout; const cb = (...args) => { if (!this._isRepeat) { - MapPrototypeDelete(activeTimers, this[kTimerId]) + MapPrototypeDelete(activeTimers, this[kTimerId]); } return callback.bind(this)(...args); - } + }; const id = this._isRepeat ? setInterval_(cb, this._idleTimeout, ...this._timerArgs) : setTimeout_(cb, this._idleTimeout, ...this._timerArgs); |