Index: src/collection.js |
diff --git a/src/collection.js b/src/collection.js |
index 04a4d946e88e4744b9510238039f4d1c56b3c706..206aaa79134709b0a1a1c67c98646e73cccd9ffe 100644 |
--- a/src/collection.js |
+++ b/src/collection.js |
@@ -91,7 +91,7 @@ |
function SetConstructor(iterable) { |
if (!%_IsConstructCall()) { |
- throw MakeTypeError(kConstructorNotFunction, "Set"); |
+ throw MakeTypeError('constructor_not_function', ['Set']); |
} |
%_SetInitialize(this); |
@@ -254,7 +254,7 @@ |
function MapConstructor(iterable) { |
if (!%_IsConstructCall()) { |
- throw MakeTypeError(kConstructorNotFunction, "Map"); |
+ throw MakeTypeError('constructor_not_function', ['Map']); |
} |
%_MapInitialize(this); |
@@ -267,7 +267,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); |
} |