Allen Wirfs-Brock (2013-10-19T17:03:56.000Z)
On Oct 18, 2013, at 4:22 PM, AndrΓ© Bargull wrote:

>> On Oct 18, 2013, at 4:01 PM, Allen Wirfs-Brock wrote:
>> 
>> > 
>> > On Oct 18, 2013, at 1:29 PM, Allen Wirfs-Brock wrote:
>> >> 
>> >> Array.from( 'πŒ†πŒ†πŒ†'))[1]
>> > 
>> > maybe even better:
>> > 
>> > Uint32Array.from( 'πŒ†πŒ†πŒ†'))[1]
>> 
>> err...maybe not if you want a string value:
>> 
>> String.fromCodePoint(Uint32Array.from( 'πŒ†πŒ†πŒ†')[1])
> 
> That does not seem to be too useful:
> 
> js> String.fromCodePoint(Uint32Array.from("\u{1d306}\u{1d306}\u{1d306}")[1])
> "\u0000"

right, it would need to be

String.fromCodePoint(Uint32Array.from( 'πŒ†πŒ†πŒ†', s=>s.codePointAt(0))[1])
> 
> 
> According to http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/index.html#String, String.prototype[@@iterator] does not return plain code points, but the String value for the code point.

yes, that's correct and how I have it spec'ed in rev20

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131019/0791ad62/attachment.html>
domenic at domenicdenicola.com (2013-10-26T03:04:10.357Z)
On Oct 18, 2013, at 4:22 PM, AndrΓ© Bargull wrote:

> That does not seem to be too useful:
> 
> ```
> js> String.fromCodePoint(Uint32Array.from("\u{1d306}\u{1d306}\u{1d306}")[1])
> "\u0000"
> ```

right, it would need to be

```js
String.fromCodePoint(Uint32Array.from( 'πŒ†πŒ†πŒ†', s=>s.codePointAt(0))[1])
```

> According to http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/index.html#String, `String.prototype[@@iterator]` does not return plain code points, but the String value for the code point.

yes, that's correct and how I have it spec'ed in rev20