-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
void 0 and undefined is NaN #681
Comments
Hey @huaguhzheng thanks for the issue It looks like we use We should probably use |
It looks like this is already fixed on the 4.x.x branch (see #498) |
Ahhh! Sorry about that, good detective work! I'll close this. We hope to be releasing 4.0.0 soon enough. For now you can guard the assertion with an additional type check: var num = void 0;
assert.typeOf(num, 'number');
assert.isNaN(num); |
there is nothing wrong with assert.isNaN(void 0) , is this a bug?
The text was updated successfully, but these errors were encountered: