Index: src/array-iterator.js |
diff --git a/src/array-iterator.js b/src/array-iterator.js |
index fb18789f988f7b8c8673f6b52014d097fc3cb2dc..f04d6c974a4d41ea27347afde466ec1166e38d31 100644 |
--- a/src/array-iterator.js |
+++ b/src/array-iterator.js |
@@ -110,8 +110,8 @@ function SetUpArrayIterator() { |
'next', ArrayIteratorNext |
)); |
%FunctionSetName(ArrayIteratorIterator, '[Symbol.iterator]'); |
- %AddProperty(ArrayIterator.prototype, symbolIterator, ArrayIteratorIterator, |
- DONT_ENUM); |
+ %AddNamedProperty(ArrayIterator.prototype, symbolIterator, |
+ ArrayIteratorIterator, DONT_ENUM); |
} |
SetUpArrayIterator(); |
@@ -125,7 +125,7 @@ function ExtendArrayPrototype() { |
'keys', ArrayKeys |
)); |
- %AddProperty($Array.prototype, symbolIterator, ArrayValues, DONT_ENUM); |
+ %AddNamedProperty($Array.prototype, symbolIterator, ArrayValues, DONT_ENUM); |
} |
ExtendArrayPrototype(); |
@@ -146,10 +146,10 @@ macro TYPED_ARRAYS(FUNCTION) |
endmacro |
macro EXTEND_TYPED_ARRAY(NAME) |
- %AddProperty($NAME.prototype, 'entries', ArrayEntries, DONT_ENUM); |
- %AddProperty($NAME.prototype, 'values', ArrayValues, DONT_ENUM); |
- %AddProperty($NAME.prototype, 'keys', ArrayKeys, DONT_ENUM); |
- %AddProperty($NAME.prototype, symbolIterator, ArrayValues, DONT_ENUM); |
+ %AddNamedProperty($NAME.prototype, 'entries', ArrayEntries, DONT_ENUM); |
+ %AddNamedProperty($NAME.prototype, 'values', ArrayValues, DONT_ENUM); |
+ %AddNamedProperty($NAME.prototype, 'keys', ArrayKeys, DONT_ENUM); |
+ %AddNamedProperty($NAME.prototype, symbolIterator, ArrayValues, DONT_ENUM); |
endmacro |
TYPED_ARRAYS(EXTEND_TYPED_ARRAY) |