follow #15818 and close #7109 (#15823)

* follow #15818 and close #7109

* Update compiler/jsgen.nim

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
This commit is contained in:
flywind 2020-11-03 01:27:39 +08:00 • committed by GitHub
commit fde17b159f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

8
tests/js/t7109.nim Normal file
View file

@ -0,0 +1,8 @@
discard """
errormsg: "Closure iterators are not supported by JS backend!"
"""
iterator iter*(): int {.closure.} =
yield 3
var x = iter