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

isNaN on Symbol error #52

Open
nodeswork opened this issue Oct 18, 2016 · 3 comments
Open

isNaN on Symbol error #52

nodeswork opened this issue Oct 18, 2016 · 3 comments

Comments

@nodeswork
Copy link

I run into this error:

/Users/yizhao/workspace/automation/node_modules/mongoose-schema-extend/index.js:35
if(isNaN(property)) {
^

TypeError: Cannot convert a Symbol value to a number
at isNaN (native)
at Object.get (/Users/yizhao/workspace/automation/node_modules/mongoose-schema-extend/index.js:35:12)

Shall we check if the property is a Symbol first?

@jarvelov
Copy link

This issue seems to have been introduced in 2.1, 2.0 works for me.

@hitgeek
Copy link

hitgeek commented Oct 27, 2016

this looks to be fixed in master branch, but NPM has different version.

@spruce
Copy link
Contributor

spruce commented Dec 27, 2016

@sieira could you cut a new release? as mentioned npm has somehow a different version.

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

No branches or pull requests

4 participants