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

[Symbol.iterator] function appears to call #next one-too-many times without returning #2

Open
T99 opened this issue Jun 22, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@T99
Copy link
Owner

T99 commented Jun 22, 2019

For some reason it appears that in the StringLineIterator class the #next function is called one-too-many times which results in the required type-check found here.

When used with a for ... of ([Symbol.iterator]) construct, there is always one final call to #next that does not return content to the iterator but that results in undefined being returned which was causing the call to String#trim() to throw a runtime error.

@T99 T99 added the bug Something isn't working label Jun 22, 2019
@T99 T99 self-assigned this Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant