@mathias please confirm. how are surrogate pairs treated by a conforming es6+ parser when one or the other side is \ escaped? still a noop?
-
-
Replying to @kuvos
In identifiers, astral symbols are only valid when represented as a raw symbol or as a single `\u{…}` escape. https://mathiasbynens.be/notes/javascript-identifiers-es6#acceptable-unicode-symbols …
2 replies 0 retweets 1 like -
In non-u regex, they’re treated as separate code units no matter how you represent them. In `u` regex it depends.
1 reply 0 retweets 0 likes -
Replying to @mathias
in non-identifier cases, can malformed or half surrogate pairs cause any kind of syntax error? i dont think they're open to exploits, right?
1 reply 0 retweets 0 likes
Replying to @kuvos
It really depends on the situation. I gave some examples inhttps://speakerdeck.com/mathiasbynens/hacking-with-unicode-in-2016 …
1:10 AM - 3 May 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.