summaryrefslogtreecommitdiff
path: root/ext/timers/01_timers.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-27 16:27:22 +0100
committerGitHub <noreply@github.com>2022-01-27 16:27:22 +0100
commitf248e6f1778dc26db91d3322de2ecca5d1aa9866 (patch)
tree46b1ff59091cc8d31ff67427173d3a0148734007 /ext/timers/01_timers.js
parent382a978859a7a7a4351542be818bb2e59523429c (diff)
Revert "refactor: update runtime code for primordial checks for "instanceof" (#13497)" (#13511)
This reverts commit 884143218fad0e18f7553aaf079d52de703f7601.
Diffstat (limited to 'ext/timers/01_timers.js')
-rw-r--r--ext/timers/01_timers.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/timers/01_timers.js b/ext/timers/01_timers.js
index caa490e61..6ef2e6654 100644
--- a/ext/timers/01_timers.js
+++ b/ext/timers/01_timers.js
@@ -16,7 +16,6 @@
// deno-lint-ignore camelcase
NumberPOSITIVE_INFINITY,
PromisePrototypeThen,
- ObjectPrototypeIsPrototypeOf,
SymbolFor,
TypeError,
} = window.__bootstrap.primordials;
@@ -288,7 +287,7 @@
}
},
(err) => {
- if (ObjectPrototypeIsPrototypeOf(core.InterruptedPrototype, err)) {
+ if (err instanceof core.Interrupted) {
// The timer was cancelled.
removeFromScheduledTimers(timerObject);
} else {