Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Invalid strings are not validated #3

Open
zloirock opened this issue Jan 28, 2023 · 1 comment
Open

Invalid strings are not validated #3

zloirock opened this issue Jan 28, 2023 · 1 comment

Comments

@zloirock
Copy link

parseJson(`"a
"`); // => "a\n", should be SyntaxError

parseJson(`"\\u123x"`); // => "ģ", should be SyntaxError

image

@zloirock
Copy link
Author

Also, unterminated string case:

parseJson(`"a`); // => 'a'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant