New full Unicode for ES6 idea
Allen Wirfs-Brock
allen at wirfs-brock.com
Tue Feb 21 10:28:40 PST 2012
On Feb 21, 2012, at 7:37 AM, Brendan Eich wrote:
> Brendan Eich wrote:
>> in open-source browsers and JS engines that use uint16 vectors internally
>
> Sorry, that reads badly. All I meant is that I can't tell what closed-source engines do, not that they do not comply with ECMA-262 combined with other web standards to have the same observable effect, e.g. Allen's example:
A quick scan of http://code.google.com/p/v8/issues/detail?id=761 suggests that there may be more variability among current browsers than we thought. I haven't tried my original test case in Chrome of IE9 but the discussion in this bug report suggests that their behavior may currently be different from FF.
>
> var c = "😁" // where the single character between the quotes is the Unicode character U+1f638
>
> c.length == 2;
> c === "\ud83d\ude38"; //the two character UTF-16 encoding of 0x1f683
> c.charCodeAt(0) == 0xd83d;
> c.charCodeAt(1) == 0xd338;
>
> Still no BRS to set, we need one if we want a full-Unicode outcome (c.length == 1, etc.).
>
> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120221/b7ba19d6/attachment.html>
More information about the es-discuss
mailing list