error parsing named null#155
Merged
dervus merged 1 commit intonodeca:masterfrom Dec 18, 2014
paolochiodi:master
Merged
Conversation
Collaborator
|
Your solution is correct, actually. If you'll make a pull request with an appropriate unit test, it would be very welcome. |
Contributor
Author
|
Where do you want me to put the unit test? Under test/issues? |
Member
|
@paolochiodi yes, everything detected as "bug" in tracker, goes to test/issue for historic reasons. |
Collaborator
|
Thanks! GitHub doesn't send notifications on new commits by some reason, so I've not noticed that in time. |
Contributor
Author
|
Thank you @dervus |
Member
|
Released. Thanks for report & PR! |
Member
|
The same bug also exists at least in int, bool & binary :) . See pending PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have this sample:
Throws
TypeError: Cannot read property 'length' of null(attached full stack)While this
and this
work properly.
I've seen that adding
here https://github.com/nodeca/js-yaml/blob/master/lib/js-yaml/type/null.js#L6 solves the problem, but I'm unsure this is the correct way to tackle the problem.
If you could point me to the right direct I'd be happy to provide a pull request.
Attached: Full stackstrace