vslashg
0a9b9d9c6e
Fix a parser bug where tokens are misidentified as commas. ( #1502 )
...
* Fix a parser bug where tokens are misidentified as commas.
In the old and new readers, when parsing an object, a comment
followed by any non-`}` token is treated as a comma.
The new unit test required changing the runjsontests.py
flag regime so that failure tests could be run with default settings.
* Honor allowComments==false mode.
Much of the comment handling in the parsers is bespoke, and does not
honor this flag. By unfiying it under a common API, the parser is
simplified and strict mode is now more correctly strict.
Note that allowComments mode does not allow for comments in
arbitrary locations; they are allowed only in certain positions.
Rectifying this is a bigger effort, since collectComments mode requires
storing the comments somewhere, and it's not immediately clear
where in the DOM all such comments should live.
---------
Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
2024-09-09 17:30:16 -07:00
..
2020-05-30 20:20:20 -07:00
2024-09-09 17:30:16 -07:00
2024-09-09 17:30:16 -07:00
2024-09-09 17:30:16 -07:00
2011-06-21 21:53:02 +00:00
2019-11-14 00:05:24 -06:00
2019-11-14 00:05:24 -06:00
2024-09-09 17:30:16 -07:00
2016-11-02 15:33:57 +03:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2021-01-09 22:39:07 -06:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2021-01-09 22:39:07 -06:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2021-01-09 22:39:07 -06:00
2019-11-09 11:49:16 +08:00
2021-01-09 22:39:07 -06:00
2021-01-09 22:39:07 -06:00
2021-01-09 22:39:07 -06:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2021-12-14 18:00:28 -08:00
2021-12-14 18:00:28 -08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-09 11:49:16 +08:00
2019-11-14 00:05:24 -06:00
2019-11-14 00:05:24 -06:00
2019-11-14 00:05:24 -06:00
2019-11-14 00:05:24 -06:00