| Index: src/collection-iterator.js
|
| diff --git a/src/collection-iterator.js b/src/collection-iterator.js
|
| index 6cc3a14db82fb8c34120617d5df89b722f065c6a..6f944f3c4ab55aa5a538b03af05f931a0e63b2c5 100644
|
| --- a/src/collection-iterator.js
|
| +++ b/src/collection-iterator.js
|
| @@ -18,8 +18,8 @@
|
|
|
| function SetIteratorNextJS() {
|
| if (!IS_SET_ITERATOR(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Set Iterator.prototype.next', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Set Iterator.prototype.next', this]);
|
| }
|
|
|
| var value_array = [UNDEFINED, UNDEFINED];
|
| @@ -48,8 +48,8 @@
|
|
|
| function SetEntries() {
|
| if (!IS_SET(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Set.prototype.entries', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Set.prototype.entries', this]);
|
| }
|
| return new SetIterator(this, ITERATOR_KIND_ENTRIES);
|
| }
|
| @@ -57,8 +57,8 @@
|
|
|
| function SetValues() {
|
| if (!IS_SET(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Set.prototype.values', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Set.prototype.values', this]);
|
| }
|
| return new SetIterator(this, ITERATOR_KIND_VALUES);
|
| }
|
| @@ -112,8 +112,8 @@
|
|
|
| function MapIteratorNextJS() {
|
| if (!IS_MAP_ITERATOR(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Map Iterator.prototype.next', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Map Iterator.prototype.next', this]);
|
| }
|
|
|
| var value_array = [UNDEFINED, UNDEFINED];
|
| @@ -138,8 +138,8 @@
|
|
|
| function MapEntries() {
|
| if (!IS_MAP(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Map.prototype.entries', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Map.prototype.entries', this]);
|
| }
|
| return new MapIterator(this, ITERATOR_KIND_ENTRIES);
|
| }
|
| @@ -147,8 +147,8 @@
|
|
|
| function MapKeys() {
|
| if (!IS_MAP(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Map.prototype.keys', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Map.prototype.keys', this]);
|
| }
|
| return new MapIterator(this, ITERATOR_KIND_KEYS);
|
| }
|
| @@ -156,8 +156,8 @@
|
|
|
| function MapValues() {
|
| if (!IS_MAP(this)) {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| - 'Map.prototype.values', this);
|
| + throw MakeTypeError('incompatible_method_receiver',
|
| + ['Map.prototype.values', this]);
|
| }
|
| return new MapIterator(this, ITERATOR_KIND_VALUES);
|
| }
|
|
|