Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: src/collection.js

Issue 1120333007: Revert of Migrate error messages, part 7. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arraybuffer.js ('k') | src/harmony-array.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/arraybuffer.js ('k') | src/harmony-array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698