summary refs log tree commit diff stats
path: root/tests/js/t7109.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/t7109.nim')
-rw-r--r--tests/js/t7109.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/js/t7109.nim b/tests/js/t7109.nim
index 0d071dbbf..a1a3b718e 100644
--- a/tests/js/t7109.nim
+++ b/tests/js/t7109.nim
@@ -1,8 +1,8 @@
-discard """
-  errormsg: "Closure iterators are not supported by JS backend!"
-"""
-
 iterator iter*(): int {.closure.} =
   yield 3
 
 var x = iter
+doAssert x() == 3
+
+let fIt = iterator(): int = yield 70
+doAssert fIt() == 70