Index: src/string-iterator.js |
diff --git a/src/string-iterator.js b/src/string-iterator.js |
index df31c130b8c8a7ecb994c0efd958194814f1b4fb..8d72b81e8be159371546362a159eaf87c4c50f1e 100644 |
--- a/src/string-iterator.js |
+++ b/src/string-iterator.js |
@@ -8,7 +8,6 @@ |
%CheckIsBootstrapping(); |
-var GlobalArray = global.Array; |
var GlobalObject = global.Object; |
var GlobalString = global.String; |
@@ -89,9 +88,9 @@ function StringPrototypeIterator() { |
%FunctionSetPrototype(StringIterator, new GlobalObject()); |
%FunctionSetInstanceClassName(StringIterator, 'String Iterator'); |
-InstallFunctions(StringIterator.prototype, DONT_ENUM, GlobalArray( |
+InstallFunctions(StringIterator.prototype, DONT_ENUM, [ |
'next', StringIteratorNext |
-)); |
+]); |
%FunctionSetName(StringIteratorIterator, '[Symbol.iterator]'); |
%AddNamedProperty(StringIterator.prototype, symbolIterator, |
StringIteratorIterator, DONT_ENUM); |