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

Unified Diff: src/collection-iterator.js

Issue 1086313003: Migrate error messages, part 2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 6f944f3c4ab55aa5a538b03af05f931a0e63b2c5..6cc3a14db82fb8c34120617d5df89b722f065c6a 100644
--- a/src/collection-iterator.js
+++ b/src/collection-iterator.js
@@ -18,8 +18,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];
@@ -48,8 +48,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);
}
@@ -57,8 +57,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);
}
@@ -112,8 +112,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];
@@ -138,8 +138,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);
}
@@ -147,8 +147,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);
}
@@ -156,8 +156,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