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

List.prototype._hasIndex needs to accept an index of 0 for empty lists #15

Closed
WolframHempel opened this issue Jul 17, 2015 · 1 comment
Labels

Comments

@WolframHempel
Copy link
Member

if( index >= entries.length || index < 0 ) {
    throw new Error( 'Index must be within current entries' );
}

needs to take entries.length === 0 && index === 0

into account

@WolframHempel
Copy link
Member Author

Fixed in release 0.2.21

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

No branches or pull requests

1 participant