Skip to content

test if it is undefined against node, not null #43

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KeenS
Copy link

@KeenS KeenS commented Dec 2, 2020

fix #39. As you cannot write undefined in JSON, I have no idea to test this patch. @sanjulr do you have any example?

@tovbinm
Copy link

tovbinm commented Dec 16, 2020

I had stumbled upon the same bug and did exactly this fix. Please merge & release.

@tovbinm
Copy link

tovbinm commented Dec 16, 2020

@KeenS I am not sure what are you willing to test here.

!_.isUndefined(null) is a completely useless expression that would always yield true. It's obvious that we are trying to test the condition about node instead.

@KeenS
Copy link
Author

KeenS commented Dec 20, 2020

I want to test this patch surely fix #39. You're right, this fix is obvious, but writing tests when you submit a patch is a good practice.

@srax47
Copy link

srax47 commented May 28, 2021

Is there any plans to merge this PR? I'm facing the same issue here.

@JounQin
Copy link

JounQin commented Aug 21, 2021

ping @cvent

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

Successfully merging this pull request may close these issues.

!_.isUndefied(null) throws TypeError: Cannot read property '$ref' of undefined
4 participants