Index: src/array-iterator.js |
diff --git a/src/array-iterator.js b/src/array-iterator.js |
index 17d55f09b20ad8057e20d55acd16efb65bdaccf1..8e4f5c7bbc6bb78e51e31ade882173aa09b724d1 100644 |
--- a/src/array-iterator.js |
+++ b/src/array-iterator.js |
@@ -106,9 +106,9 @@ function SetUpArrayIterator() { |
%FunctionSetPrototype(ArrayIterator, new $Object()); |
%FunctionSetInstanceClassName(ArrayIterator, 'Array Iterator'); |
- InstallFunctions(ArrayIterator.prototype, DONT_ENUM, $Array( |
+ InstallFunctions(ArrayIterator.prototype, DONT_ENUM, [ |
'next', ArrayIteratorNext |
- )); |
+ ]); |
%FunctionSetName(ArrayIteratorIterator, '[Symbol.iterator]'); |
%AddNamedProperty(ArrayIterator.prototype, symbolIterator, |
ArrayIteratorIterator, DONT_ENUM); |
@@ -121,11 +121,11 @@ SetUpArrayIterator(); |
function ExtendArrayPrototype() { |
%CheckIsBootstrapping(); |
- InstallFunctions($Array.prototype, DONT_ENUM, $Array( |
+ InstallFunctions($Array.prototype, DONT_ENUM, [ |
// No 'values' since it breaks webcompat: http://crbug.com/409858 |
'entries', ArrayEntries, |
'keys', ArrayKeys |
- )); |
+ ]); |
%AddNamedProperty($Array.prototype, symbolIterator, ArrayValues, DONT_ENUM); |
} |