@@ -30,9 +30,27 @@ const {
30
30
DatePrototypeGetTime,
31
31
DatePrototypeToISOString,
32
32
DatePrototypeToString,
33
+
33
34
Error,
34
35
ErrorPrototype,
35
36
ErrorPrototypeToString,
37
+ AggregateError,
38
+ AggregateErrorPrototype,
39
+ EvalError,
40
+ EvalErrorPrototype,
41
+ RangeError,
42
+ RangeErrorPrototype,
43
+ ReferenceError,
44
+ ReferenceErrorPrototype,
45
+ // SuppressedError,
46
+ // SuppressedErrorPrototype,
47
+ SyntaxError,
48
+ SyntaxErrorPrototype,
49
+ TypeError,
50
+ TypeErrorPrototype,
51
+ URIError,
52
+ URIErrorPrototype,
53
+
36
54
Function,
37
55
FunctionPrototype,
38
56
FunctionPrototypeBind,
@@ -636,7 +654,17 @@ const wellKnownPrototypes = new SafeMap()
636
654
. set ( RegExpPrototype , { name : 'RegExp' , constructor : RegExp } )
637
655
. set ( DatePrototype , { name : 'Date' , constructor : Date } )
638
656
. set ( DataViewPrototype , { name : 'DataView' , constructor : DataView } )
657
+
639
658
. set ( ErrorPrototype , { name : 'Error' , constructor : Error } )
659
+ . set ( AggregateErrorPrototype , { name : 'AggregateError' , constructor : AggregateError } )
660
+ . set ( EvalErrorPrototype , { name : 'EvalError' , constructor : EvalError } )
661
+ . set ( RangeErrorPrototype , { name : 'RangeError' , constructor : RangeError } )
662
+ . set ( ReferenceErrorPrototype , { name : 'ReferenceError' , constructor : ReferenceError } )
663
+ // .set(SuppressedErrorPrototype, { name: 'SuppressedError', constructor: SuppressedError })
664
+ . set ( SyntaxErrorPrototype , { name : 'SyntaxError' , constructor : SyntaxError } )
665
+ . set ( TypeErrorPrototype , { name : 'TypeError' , constructor : TypeError } )
666
+ . set ( URIErrorPrototype , { name : 'URIError' , constructor : URIError } )
667
+
640
668
. set ( BooleanPrototype , { name : 'Boolean' , constructor : Boolean } )
641
669
. set ( NumberPrototype , { name : 'Number' , constructor : Number } )
642
670
. set ( StringPrototype , { name : 'String' , constructor : String } )
0 commit comments