| Index: src/weak-collection.js
|
| diff --git a/src/weak-collection.js b/src/weak-collection.js
|
| index ccb2c35e2b4adf613511d56bd4e68548336abfc8..02804aff72e399a0450c79dbcbae4a270756bc90 100644
|
| --- a/src/weak-collection.js
|
| +++ b/src/weak-collection.js
|
| @@ -17,7 +17,7 @@
|
|
|
| function WeakMapConstructor(iterable) {
|
| if (!%_IsConstructCall()) {
|
| - throw MakeTypeError(kConstructorNotFunction, "WeakMap");
|
| + throw MakeTypeError('constructor_not_function', ['WeakMap']);
|
| }
|
|
|
| %WeakCollectionInitialize(this);
|
| @@ -29,7 +29,7 @@
|
| }
|
| for (var nextItem of iterable) {
|
| if (!IS_SPEC_OBJECT(nextItem)) {
|
| - throw MakeTypeError(kIteratorValueNotAnObject, nextItem);
|
| + throw MakeTypeError('iterator_value_not_an_object', [nextItem]);
|
| }
|
| %_CallFunction(this, nextItem[0], nextItem[1], adder);
|
| }
|
| @@ -102,7 +102,7 @@
|
|
|
| function WeakSetConstructor(iterable) {
|
| if (!%_IsConstructCall()) {
|
| - throw MakeTypeError(kConstructorNotFunction, "WeakSet");
|
| + throw MakeTypeError('constructor_not_function', ['WeakSet']);
|
| }
|
|
|
| %WeakCollectionInitialize(this);
|
|
|