Skip to content

Commit e926970

Browse files
committed
fixup
1 parent 4d49f4a commit e926970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/vm/tconstrefs.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@ block: # regression test with closures
112112
result.add even
113113
result.setLen 2 # intentionally leaving 1 unassigned
114114
const a = bar()
115-
doAssert a == bar()
115+
when not defined(js):
116+
doAssert a == bar()
116117
doAssert a[0](2) == 2*3

0 commit comments

Comments
 (0)