Mathias Bynens (2013-10-18T17:30:42.000Z)
domenic at domenicdenicola.com (2013-10-24T14:22:09.945Z)
On 18 Oct 2013, at 11:05, Anne van Kesteren <annevk at annevk.nl> 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. Woah, that doesn’t seem very useful. Is that a bug, or the way it’s supposed to work? I thought it was supposed to only iterate over whole code points (i.e. only print once for each code point, not once for each surrogate half).