Skip to content

Commit

Permalink
feat: add AggregateError, FinalizationRegistry, WeakRef to know…
Browse files Browse the repository at this point in the history
…nGlobals (#5651)
  • Loading branch information
re-taro authored Sep 15, 2024
1 parent 3fef771 commit da0e5f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ast/nodes/shared/knownGlobals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ const knownGlobals: GlobalDescription = {
isView: PF,
prototype: O
},
AggregateError: PC_WITH_ARRAY,
Atomics: O,
BigInt: C,
BigInt64Array: C,
Expand All @@ -192,6 +193,7 @@ const knownGlobals: GlobalDescription = {
escape: PF,
eval: O,
EvalError: PC,
FinalizationRegistry: C,
Float32Array: ARRAY_TYPE,
Float64Array: ARRAY_TYPE,
Function: C,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit da0e5f7

Please sign in to comment.