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

Unified Diff: src/collection-iterator.js

Issue 1083083004: Reland "Migrate error messages, part 2." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for layout test 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/collection.js ('k') | src/execution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/collection-iterator.js
diff --git a/src/collection-iterator.js b/src/collection-iterator.js
index e66b4434041a26318f4743bb450424ea109397fe..c99947b47caaac738d4fe13ac9f4d3c061da0022 100644
--- a/src/collection-iterator.js
+++ b/src/collection-iterator.js
@@ -26,8 +26,8 @@ function SetIteratorConstructor(set, kind) {
function SetIteratorNextJS() {
if (!IS_SET_ITERATOR(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Set Iterator.prototype.next', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Set Iterator.prototype.next', this);
}
var value_array = [UNDEFINED, UNDEFINED];
@@ -56,8 +56,8 @@ function SetIteratorSymbolIterator() {
function SetEntries() {
if (!IS_SET(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Set.prototype.entries', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Set.prototype.entries', this);
}
return new SetIterator(this, ITERATOR_KIND_ENTRIES);
}
@@ -65,8 +65,8 @@ function SetEntries() {
function SetValues() {
if (!IS_SET(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Set.prototype.values', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Set.prototype.values', this);
}
return new SetIterator(this, ITERATOR_KIND_VALUES);
}
@@ -111,8 +111,8 @@ function MapIteratorSymbolIterator() {
function MapIteratorNextJS() {
if (!IS_MAP_ITERATOR(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Map Iterator.prototype.next', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Map Iterator.prototype.next', this);
}
var value_array = [UNDEFINED, UNDEFINED];
@@ -137,8 +137,8 @@ function MapIteratorNextJS() {
function MapEntries() {
if (!IS_MAP(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Map.prototype.entries', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Map.prototype.entries', this);
}
return new MapIterator(this, ITERATOR_KIND_ENTRIES);
}
@@ -146,8 +146,8 @@ function MapEntries() {
function MapKeys() {
if (!IS_MAP(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Map.prototype.keys', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Map.prototype.keys', this);
}
return new MapIterator(this, ITERATOR_KIND_KEYS);
}
@@ -155,8 +155,8 @@ function MapKeys() {
function MapValues() {
if (!IS_MAP(this)) {
- throw MakeTypeError('incompatible_method_receiver',
- ['Map.prototype.values', this]);
+ throw MakeTypeError(kIncompatibleMethodReceiver,
+ 'Map.prototype.values', this);
}
return new MapIterator(this, ITERATOR_KIND_VALUES);
}
« no previous file with comments | « src/collection.js ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698