*Contact emailsmath...@chromium.org <math...@chromium.org>Spechttps://github.com/tc39/proposal-json-superset <https://github.com/tc39/proposal-json-superset>SummaryA Stage 3 proposal makes ECMAScript a syntactic superset of JSON by allowing U+2028 and U+2029 in string literals.MotivationECMAScript claims JSON as a subset in JSON.parse <https://tc39.github.io/ecma262/#sec-json.parse>, but (as has been well-documented) that is not true because JSON strings can contain unescaped U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR characters while ECMAScript strings cannot.These exceptions add unnecessary complexity to the specification and increase the cognitive burden on both implementers and users, allowing for the introduction of subtle bugs. Also, as a lesser but concrete corollary problem, certain source concatenation and construction tasks currently require additional steps to process valid JSON into valid ECMAScript before embedding it.Interoperability riskFirefox: Public supportEdge: Public supportSafari: Public supportWeb developers: Strongly positiveCompatibility riskThis change is backwards-compatible. User-visible effects will be limited to the elimination of SyntaxError completions when parsing strings that include unescaped LINE SEPARATOR or PARAGRAPH SEPARATOR characters, which in practice are uncommon.Is this feature fully tested?Yes; see v8/test/cctest/test-parsing/LineOrParagraphSeparator{AsLineTerminator,InStringLiteral,InStringLiteralHarmony}.Tracking bughttps://bugs.chromium.org/p/v8/issues/detail?id=7418 <https://bugs.chromium.org/p/v8/issues/detail?id=7418>Link to entry on the Chrome Platform Status dashboardhttps://www.chromestatus.com/features/6102319234023424 <https://www.chromestatus.com/features/6102319234023424>Requesting approval to ship?Yes*
-- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.