From f086ec57b453fc0af763564eb80fea4b5b7f7296 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sat, 15 Apr 2023 05:23:28 +0900 Subject: fix(core): Use safe primordials wrappers (#18687) --- ext/web/02_timers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/web/02_timers.js') diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js index 753848af1..78cf06e44 100644 --- a/ext/web/02_timers.js +++ b/ext/web/02_timers.js @@ -7,7 +7,6 @@ const { ArrayPrototypePush, ArrayPrototypeShift, FunctionPrototypeCall, - Map, MapPrototypeDelete, MapPrototypeGet, MapPrototypeHas, @@ -18,6 +17,7 @@ const { NumberPOSITIVE_INFINITY, PromisePrototypeThen, SafeArrayIterator, + SafeMap, SymbolFor, TypedArrayPrototypeGetBuffer, TypeError, @@ -76,7 +76,7 @@ function handleTimerMacrotask() { * * @type {Map} */ -const activeTimers = new Map(); +const activeTimers = new SafeMap(); let nextId = 1; -- cgit v1.2.3