summaryrefslogtreecommitdiff
path: root/ext/ffi/00_ffi.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi/00_ffi.js')
-rw-r--r--ext/ffi/00_ffi.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi/00_ffi.js b/ext/ffi/00_ffi.js
index 5ebd3f96c..359b10b45 100644
--- a/ext/ffi/00_ffi.js
+++ b/ext/ffi/00_ffi.js
@@ -24,7 +24,7 @@
PromisePrototypeThen,
MathMax,
MathCeil,
- Map,
+ SafeMap,
SafeArrayIterator,
} = window.__bootstrap.primordials;
@@ -255,7 +255,7 @@
typeof type.struct === "object";
}
- function getTypeSizeAndAlignment(type, cache = new Map()) {
+ function getTypeSizeAndAlignment(type, cache = new SafeMap()) {
if (isStruct(type)) {
const cached = cache.get(type);
if (cached !== undefined) {