On Fri, Mar 16, 2018 at 9:04 PM, Mike Samuel <mikesam...@gmail.com> wrote:
> > The output of JSON.canonicalize would also not be in the subset of JSON > that is also a subset of JavaScript's PrimaryExpression. > > JSON.canonicalize(JSON.stringify("\u2028\u2029")) === `"\u2028\u2029"` > Soon U+2028 and U+2029 will no longer be edge cases. A Stage 3 proposal (currently shipping in Chrome) makes them valid in ECMAScript string literals, making JSON a strict subset of ECMAScript: https://github.com/tc39/proposal-json-superset
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss