André Bargull (2013-10-18T16:17:30.000Z)
> >/  I disagree. In those situations you should just iterate over the string using `for...of`.
> /
> That seems to iterate over code units as far as I can tell.
>
>    for (var x of "?")
>      print(x.charCodeAt(0))
>
> invokes print() twice in Gecko.

SpiderMonkey does not implement the (yet to be) spec'ed 
String.prototype.@@iterator function, instead it simply aliases 
String.prototype["@@iterator"] to Array.prototype["@@iterator"]:

js> String.prototype["@@iterator"] === Array.prototype["@@iterator"]
true


- André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131018/ba49c35b/attachment-0001.html>
domenic at domenicdenicola.com (2013-10-24T14:20:12.132Z)
SpiderMonkey does not implement the (yet to be) spec'ed 
`String.prototype.@@iterator` function, instead it simply aliases 
`String.prototype["@@iterator"]` to `Array.prototype["@@iterator"]`:

```
js> String.prototype["@@iterator"] === Array.prototype["@@iterator"]

true
```