Index: src/string-iterator.js |
diff --git a/src/string-iterator.js b/src/string-iterator.js |
index cb3a90abc5f41c43318e32aa435a551343ee480b..b28c63b8584d43700049bad7483d0e534ff36bff 100644 |
--- a/src/string-iterator.js |
+++ b/src/string-iterator.js |
@@ -91,13 +91,13 @@ function StringPrototypeIterator() { |
InstallFunctions(StringIterator.prototype, DONT_ENUM, [ |
'next', StringIteratorNext |
]); |
-%FunctionSetName(StringIteratorIterator, '[Symbol.iterator]'); |
+SetFunctionName(StringIteratorIterator, symbolIterator); |
%AddNamedProperty(StringIterator.prototype, symbolIterator, |
StringIteratorIterator, DONT_ENUM); |
%AddNamedProperty(StringIterator.prototype, symbolToStringTag, |
"String Iterator", READ_ONLY | DONT_ENUM); |
-%FunctionSetName(StringPrototypeIterator, '[Symbol.iterator]'); |
+SetFunctionName(StringPrototypeIterator, symbolIterator); |
%AddNamedProperty(GlobalString.prototype, symbolIterator, |
StringPrototypeIterator, DONT_ENUM); |