News for hackers. Stuff that matters.
Re:String Lengths in Unicode by hsivonen on Monday September 09, 2019 @05:39AM (#20916612)
> Which I expect is what TFA means by "UTF-16 semantics".

The article says "(potentially-invalid) UTF-16 semantics". The "potentially-invalid" part means that the JavaScript programmer can materialize unpaired surrogates. The "semantics" part means that the JavaScript programmer sees the strings acting as if they were potentially-invalid UTF-16 even when the storage format in RAM is actually Latin1 in SpiderMonkey and V8.

There are no comments on this comment yet.