mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
fix(ext/ffi): use SafeMap in getTypeSizeAndAlignment (#17305)
This commit is contained in:
parent
9830ae8297
commit
44d9acca75
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue