fix(ext/ffi): use SafeMap in getTypeSizeAndAlignment
PromisePrototypeThen,
MathMax,
MathCeil,
- Map,
+ SafeMap,
SafeArrayIterator,
} = window.__bootstrap.primordials;
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) {
