diff options
Diffstat (limited to 'ext/web/12_location.js')
-rw-r--r-- | ext/web/12_location.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/12_location.js b/ext/web/12_location.js index b80e7ef56..680f3d53b 100644 --- a/ext/web/12_location.js +++ b/ext/web/12_location.js @@ -8,11 +8,11 @@ const primordials = globalThis.__bootstrap.primordials; const { Error, ObjectDefineProperties, + SafeWeakMap, Symbol, SymbolFor, SymbolToStringTag, TypeError, - WeakMap, WeakMapPrototypeGet, WeakMapPrototypeSet, } = primordials; @@ -206,7 +206,7 @@ ObjectDefineProperties(Location.prototype, { }, }); -const workerLocationUrls = new WeakMap(); +const workerLocationUrls = new SafeWeakMap(); class WorkerLocation { constructor(href = null, key = null) { |