`String.prototype.symbolAt()` (improved `String.prototype.charAt()`)

Jason Orendorff jason.orendorff at gmail.com
Fri Oct 18 12:53:42 PDT 2013


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


More information about the es-discuss mailing list