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

TableCellIterator throws OutOfBounds error on while(iterator.next()) {} #381

Closed
dmukhg opened this issue Jan 8, 2016 · 0 comments
Closed

Comments

@dmukhg
Copy link
Contributor

dmukhg commented Jan 8, 2016

The ParentNodeMixin's getChildAt method has an arrayIndex Out of bounds check. This prevents repeated calls to iterator.next() work properly.

if you do
`var iterator = new TableCellIterator(tableNode);
var cellNode;

while ((cellNode = iterator.next()) !== null) {
// some operation
}`

You get an un-handled error.

I will be creating a pull request with a failing test shortly.

dmukhg added a commit to TypesetIO/substance that referenced this issue Jan 8, 2016
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

1 participant