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

'range' method check arguments #2265

Closed
imatveev opened this issue Jan 29, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@imatveev
Copy link

commented Jan 29, 2016

On line 5062 there is argument type checking before 'range' function call:
if (typeof value === 'number')
Issue is that checking of type is pass NaN value, that is causes an error in line 5142 of code:
var ret = new Array(NaN);

There a situation that causes an error (we appeal to nonexistent data):
http://jsfiddle.net/0jje0pfa/

@yyx990803 yyx990803 closed this in 7cab529 Jan 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.