diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-04-15 05:23:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 22:23:28 +0200 |
commit | f086ec57b453fc0af763564eb80fea4b5b7f7296 (patch) | |
tree | 8c7800d918751893e4011eb86f23e8f687d4139b /ext/web/02_timers.js | |
parent | 136dce67cec749dce5989ea29e88359ef79a0045 (diff) |
fix(core): Use safe primordials wrappers (#18687)
Diffstat (limited to 'ext/web/02_timers.js')
-rw-r--r-- | ext/web/02_timers.js | 4 |
1 files changed, 2 insertions, 2 deletions
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<number, { cancelRid: number, isRef: boolean, promiseId: number }>} */ -const activeTimers = new Map(); +const activeTimers = new SafeMap(); let nextId = 1; |