From da0e5f7e1df6b6c0e80e0ea89e2cf9947fb23c34 Mon Sep 17 00:00:00 2001 From: Rintaro Itokawa Date: Sun, 15 Sep 2024 14:36:58 +0900 Subject: [PATCH] feat: add `AggregateError`, `FinalizationRegistry`, `WeakRef` to knownGlobals (#5651) --- src/ast/nodes/shared/knownGlobals.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ast/nodes/shared/knownGlobals.ts b/src/ast/nodes/shared/knownGlobals.ts index 0059b64c5..fc97be1d2 100644 --- a/src/ast/nodes/shared/knownGlobals.ts +++ b/src/ast/nodes/shared/knownGlobals.ts @@ -169,6 +169,7 @@ const knownGlobals: GlobalDescription = { isView: PF, prototype: O }, + AggregateError: PC_WITH_ARRAY, Atomics: O, BigInt: C, BigInt64Array: C, @@ -192,6 +193,7 @@ const knownGlobals: GlobalDescription = { escape: PF, eval: O, EvalError: PC, + FinalizationRegistry: C, Float32Array: ARRAY_TYPE, Float64Array: ARRAY_TYPE, Function: C, @@ -342,6 +344,7 @@ const knownGlobals: GlobalDescription = { URIError: PC, valueOf: O, WeakMap: PC_WITH_ARRAY, + WeakRef: C, WeakSet: PC_WITH_ARRAY, // Additional globals shared by Node and Browser that are not strictly part of the language