Index: src/js/array-iterator.js |
diff --git a/src/js/array-iterator.js b/src/js/array-iterator.js |
index 8203f1f9f5933e46727f4fab187c5e24665f2af2..ce2f2951ef3ba41d16a9c99f1cc00ec29f51f0d7 100644 |
--- a/src/js/array-iterator.js |
+++ b/src/js/array-iterator.js |
@@ -144,9 +144,11 @@ utils.InstallFunctions(GlobalArray.prototype, DONT_ENUM, [ |
'keys', ArrayKeys |
]); |
-// TODO(adam): Remove this call once 'values' is in the above |
-// InstallFunctions block, as it'll be redundant. |
+// TODO(adam): Remove these calls once 'values' is in the above |
+// InstallFunctions block, as they'll be redundant. |
utils.SetFunctionName(ArrayValues, 'values'); |
+%FunctionRemovePrototype(ArrayValues); |
+%SetNativeFlag(ArrayValues); |
%AddNamedProperty(GlobalArray.prototype, iteratorSymbol, ArrayValues, |
DONT_ENUM); |