Today I learned: JSON is not a subset of JavaScript. There are valid characters in JSON strings, which are treated as linebreaks JavaScript:
'LINE SEPARATOR' (U+2028)
'PARAGRAPH SEPARATOR' (U+2029)
Excellent talkt by @mathias some time ago:https://www.youtube.com/watch?v=HhIEDWmQS3w …
You’ll be pleased to hear that in recent years we managed to improve the situation somewhat: https://v8.dev/features/subsume-json … Still, this is a potential concern for legacy environments.
-
-
Great stuff, thanks for the update
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.