Allen Wirfs-Brock (2013-10-18T17:03:58.000Z)
domenic at domenicdenicola.com (2013-10-26T03:01:20.806Z)
On Oct 18, 2013, at 9:05 AM, Anne van Kesteren wrote: > That seems to iterate over code units as far as I can tell. > > ```js > for (var x of "💩") > print(x.charCodeAt(0)) > ``` > > invokes print() twice in Gecko. > No that's not correct, the @@iterator method of `String.prototype` is supposed to returns an iterator the iterates code points and returns single codepoint strings. The spec. for this will be in the next draft that I release.
domenic at domenicdenicola.com (2013-10-24T14:21:11.834Z)
On Oct 18, 2013, at 9:05 AM, Anne van Kesteren wrote: > 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. > No that's not correct, the @@iterator method of String.prototype is supposed to returns an interator the iterates code points and returns single codepoint strings. The spec. for this will be in the next draft that I release.