|
1 | 1 | 'use strict'; |
2 | 2 |
|
3 | 3 | const { |
| 4 | + AggregateError, |
| 5 | + AggregateErrorPrototype, |
4 | 6 | Array, |
5 | 7 | ArrayBuffer, |
6 | 8 | ArrayBufferPrototype, |
@@ -74,6 +76,8 @@ const { |
74 | 76 | ObjectSetPrototypeOf, |
75 | 77 | Promise, |
76 | 78 | PromisePrototype, |
| 79 | + RangeError, |
| 80 | + RangeErrorPrototype, |
77 | 81 | ReflectApply, |
78 | 82 | ReflectOwnKeys, |
79 | 83 | RegExp, |
@@ -114,6 +118,8 @@ const { |
114 | 118 | SymbolPrototypeValueOf, |
115 | 119 | SymbolToPrimitive, |
116 | 120 | SymbolToStringTag, |
| 121 | + TypeError, |
| 122 | + TypeErrorPrototype, |
117 | 123 | TypedArray, |
118 | 124 | TypedArrayPrototype, |
119 | 125 | TypedArrayPrototypeGetLength, |
@@ -636,7 +642,12 @@ const wellKnownPrototypes = new SafeMap() |
636 | 642 | .set(RegExpPrototype, { name: 'RegExp', constructor: RegExp }) |
637 | 643 | .set(DatePrototype, { name: 'Date', constructor: Date }) |
638 | 644 | .set(DataViewPrototype, { name: 'DataView', constructor: DataView }) |
| 645 | + |
639 | 646 | .set(ErrorPrototype, { name: 'Error', constructor: Error }) |
| 647 | + .set(AggregateErrorPrototype, { name: 'AggregateError', constructor: AggregateError }) |
| 648 | + .set(RangeErrorPrototype, { name: 'RangeError', constructor: RangeError }) |
| 649 | + .set(TypeErrorPrototype, { name: 'TypeError', constructor: TypeError }) |
| 650 | + |
640 | 651 | .set(BooleanPrototype, { name: 'Boolean', constructor: Boolean }) |
641 | 652 | .set(NumberPrototype, { name: 'Number', constructor: Number }) |
642 | 653 | .set(StringPrototype, { name: 'String', constructor: String }) |
|
0 commit comments