JSON text is not a subset of PrimaryExpression

Mike Samuel mikesamuel at gmail.com
Wed Jul 19 17:09:17 UTC 2017


On Wed, Jul 19, 2017 at 12:40 PM, Allen Wirfs-Brock
<allen at wirfs-brock.com> wrote:
> The “issue” raised is one word in a non-normative paragraph.  It can be
> corrected with a one word change.  Replace
>
> "Valid JSON text is a subset of the ECMAScript PrimaryExpression syntax as
> modified by Step 4 above.”
>
> with
>
> "Valid JSON text is a variant of the ECMAScript PrimaryExpression syntax as
> modified by Step 4 above.”

+1.  AFAICT, the only benefit "subset" gets us is that it's a bit
easier to paste JSON into a .js file.
I doubt a significant number of people are pasting JSON with the
problematic codepoints but if there are that can be addressed by
js-mode.el or your favorite analogue.


More information about the es-discuss mailing list