summaryrefslogtreecommitdiff
path: root/ext/web/02_structured_clone.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/02_structured_clone.js')
-rw-r--r--ext/web/02_structured_clone.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/02_structured_clone.js b/ext/web/02_structured_clone.js
index 6dd1d4d03..b0c7559c0 100644
--- a/ext/web/02_structured_clone.js
+++ b/ext/web/02_structured_clone.js
@@ -20,12 +20,12 @@ const {
DataViewPrototypeGetByteLength,
DataViewPrototypeGetByteOffset,
ObjectPrototypeIsPrototypeOf,
+ SafeWeakMap,
TypedArrayPrototypeGetBuffer,
TypedArrayPrototypeGetByteOffset,
TypedArrayPrototypeGetLength,
TypedArrayPrototypeGetSymbolToStringTag,
TypeErrorPrototype,
- WeakMap,
WeakMapPrototypeSet,
Int8Array,
Int16Array,
@@ -40,7 +40,7 @@ const {
Float64Array,
} = primordials;
-const objectCloneMemo = new WeakMap();
+const objectCloneMemo = new SafeWeakMap();
function cloneArrayBuffer(
srcBuffer,