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

Better error message when attempting to use closure iterators with js backend #7109

Closed
RedBeard0531 opened this issue Jan 19, 2018 · 0 comments

Comments

@RedBeard0531
Copy link
Contributor

The current error looks like there is a bug. It should probably just say "Closure iterators are not supported by the js backend"

iterator iter: int {.closure.} =
    yield 1
    yield 2

var x = iter
jsiter.nim(5, 9) Error: internal error: symbol has no generated name: iter
ringabout added a commit to ringabout/Nim that referenced this issue Nov 2, 2020
@Araq Araq closed this as completed in fde17b1 Nov 2, 2020
narimiran pushed a commit that referenced this issue Nov 5, 2020
* follow #15818 and close #7109

* Update compiler/jsgen.nim

Co-authored-by: Juan Carlos <[email protected]>

Co-authored-by: Juan Carlos <[email protected]>
(cherry picked from commit fde17b1)
PMunch pushed a commit to PMunch/Nim that referenced this issue Jan 6, 2021
* follow nim-lang#15818 and close nim-lang#7109

* Update compiler/jsgen.nim

Co-authored-by: Juan Carlos <[email protected]>

Co-authored-by: Juan Carlos <[email protected]>
mildred pushed a commit to mildred/Nim that referenced this issue Jan 11, 2021
* follow nim-lang#15818 and close nim-lang#7109

* Update compiler/jsgen.nim

Co-authored-by: Juan Carlos <[email protected]>

Co-authored-by: Juan Carlos <[email protected]>
Araq added a commit that referenced this issue Feb 18, 2021
irdassis pushed a commit to irdassis/Nim that referenced this issue Mar 16, 2021
* follow nim-lang#15818 and close nim-lang#7109

* Update compiler/jsgen.nim

Co-authored-by: Juan Carlos <[email protected]>

Co-authored-by: Juan Carlos <[email protected]>
ardek66 pushed a commit to ardek66/Nim that referenced this issue Mar 26, 2021
* follow nim-lang#15818 and close nim-lang#7109

* Update compiler/jsgen.nim

Co-authored-by: Juan Carlos <[email protected]>

Co-authored-by: Juan Carlos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants