2 ms·
> ES6 did get some new functions to correctly deal with surrogate pairs in strings. In then end, JS strings are just an sequence of 16 bit values Which is exac
by masklinn 11y ago
> ES6 did get some new functions to correctly deal with surrogate pairs in strings. In then end, JS strings are just an sequence of 16 bit values
Which is exactly why they are not and can not be UTF-16.
> The default JavaScript behaviors is to be lenient.
The javascript behaviour is to have UCS2 "strings".