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

Unified Diff: src/collection.js

Issue 1122033002: Migrate error messages, part 7. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase 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 206aaa79134709b0a1a1c67c98646e73cccd9ffe..04a4d946e88e4744b9510238039f4d1c56b3c706 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -91,7 +91,7 @@ function GetHash(key) {
function SetConstructor(iterable) {
if (!%_IsConstructCall()) {
- throw MakeTypeError('constructor_not_function', ['Set']);
+ throw MakeTypeError(kConstructorNotFunction, "Set");
}
%_SetInitialize(this);
@@ -254,7 +254,7 @@ InstallFunctions(GlobalSet.prototype, DONT_ENUM, [
function MapConstructor(iterable) {
if (!%_IsConstructCall()) {
- throw MakeTypeError('constructor_not_function', ['Map']);
+ throw MakeTypeError(kConstructorNotFunction, "Map");
}
%_MapInitialize(this);
@@ -267,7 +267,7 @@ function MapConstructor(iterable) {
for (var nextItem of iterable) {
if (!IS_SPEC_OBJECT(nextItem)) {
- throw MakeTypeError('iterator_value_not_an_object', [nextItem]);
+ throw MakeTypeError(kIteratorValueNotAnObject, 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