Jason Orendorff (2013-10-18T19:53:42.000Z)
On Fri, Oct 18, 2013 at 12:03 PM, Allen Wirfs-Brock
<allen at wirfs-brock.com> wrote:
>>  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.

Filed: https://bugzilla.mozilla.org/show_bug.cgi?id=928508

-j
domenic at domenicdenicola.com (2013-10-26T03:02:50.036Z)
On Fri, Oct 18, 2013 at 12:03 PM, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
>> ```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.

Filed: https://bugzilla.mozilla.org/show_bug.cgi?id=928508