-
-
Notifications
You must be signed in to change notification settings - Fork 776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax error in array [,] parsed as [null] #321
Labels
Comments
Seems to be a bug. libyaml-based parsers return error @dervus ? |
rlidwka
added a commit
that referenced
this issue
Dec 11, 2020
Fixed in adfee17 (currently in dev branch, gonna be released as js-yaml 4 later). |
This was referenced Mar 11, 2021
This was referenced Mar 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm using js-yaml in a code editor that supports json and yaml user input and then transforms the content (if it is valid) into javascript objects for further manipulation.
I've encountered the following bug: If an array contains an extra comma
,
, instead of throwing an exception for invalid yaml or json, the parser transforms the value intonull
. Although I include several other options, this is the simplest case in which the error occurs.Code snippet:
Expected:
YAMLException is thrown
Actual:
The text was updated successfully, but these errors were encountered: