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

Unified Diff: src/weak-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, 8 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/typedarray.js ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/weak-collection.js
diff --git a/src/weak-collection.js b/src/weak-collection.js
index 02804aff72e399a0450c79dbcbae4a270756bc90..ccb2c35e2b4adf613511d56bd4e68548336abfc8 100644
--- a/src/weak-collection.js
+++ b/src/weak-collection.js
@@ -17,7 +17,7 @@ var GlobalWeakSet = global.WeakSet;
function WeakMapConstructor(iterable) {
if (!%_IsConstructCall()) {
- throw MakeTypeError('constructor_not_function', ['WeakMap']);
+ throw MakeTypeError(kConstructorNotFunction, "WeakMap");
}
%WeakCollectionInitialize(this);
@@ -29,7 +29,7 @@ function WeakMapConstructor(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);
}
@@ -102,7 +102,7 @@ InstallFunctions(GlobalWeakMap.prototype, DONT_ENUM, [
function WeakSetConstructor(iterable) {
if (!%_IsConstructCall()) {
- throw MakeTypeError('constructor_not_function', ['WeakSet']);
+ throw MakeTypeError(kConstructorNotFunction, "WeakSet");
}
%WeakCollectionInitialize(this);
« no previous file with comments | « src/typedarray.js ('k') | test/mjsunit/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698