You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In JavaScript, "\012" or equivalently "\12" is a deprecated way to spell "\u000a" (same as "\012" or "\x0a" in C). In JSON, it's an undefined (hence invalid) escape sequence, just like "\x".
Different parsers might implement this differently (for example json-glib historically accepted "\012" as an extension) so it seems worthwhile to include in the test corpus.
The text was updated successfully, but these errors were encountered:
smcv
added a commit
to smcv/JSONTestSuite
that referenced
this issue
Oct 15, 2024
In standardized JSON, this is an error. In JavaScript, it's a deprecated
alternate spelling for `"\u000a"` (012 octal = 0x000a hex), and some
parsers like the one in json-glib (when not in strict mode) accept this
as an extension beyond standard JSON.
Resolves: nst#136
Signed-off-by: Simon McVittie <[email protected]>
smcv
linked a pull request
Oct 15, 2024
that will
close
this issue
In JavaScript,
"\012"
or equivalently"\12"
is a deprecated way to spell"\u000a"
(same as"\012"
or"\x0a"
in C). In JSON, it's an undefined (hence invalid) escape sequence, just like"\x"
.Different parsers might implement this differently (for example json-glib historically accepted
"\012"
as an extension) so it seems worthwhile to include in the test corpus.The text was updated successfully, but these errors were encountered: