Skip to content
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

TypeError: Cannot read property 'propertyIsEnumerable' of undefined #10

Open
skidvd opened this issue Mar 2, 2018 · 1 comment
Open
Assignees

Comments

@skidvd
Copy link

skidvd commented Mar 2, 2018

TypeError: Cannot read property 'propertyIsEnumerable' of undefined
at DataObjectParser.get (dataobject-parser.js:115)

Our data model uses undefined (vs. null) intentionally. null denotes an intentional absence of value, while undefined has not yet been determined or not yet available.

line 114 of the dataobject-parser.js script appears to check for null, but does not handle undefined, yielding the above error in case of the undefined value. Any reason it could not check for and correctly handle both null and undefined? In the case of undefined, I'd expect to receive undefined as the return value from the .get() call.

@henrytseng
Copy link
Owner

Can you verify this is what you're looking for? Also if you can help to write some more tests to avoid any edge cases I've missed much appreciated!

#11

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

No branches or pull requests

2 participants