This commit is contained in:
flywind
2020-10-30 16:16:47 +08:00
committed by GitHub
parent d8fb2379c9
commit f79ded3cb6
2 changed files with 4 additions and 0 deletions

View File

@@ -2534,6 +2534,7 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
if n[0].kind != nkEmpty:
genLineDir(p, n)
gen(p, n[0], r)
r.res = "var _ = " & r.res
of nkAsmStmt: genAsmOrEmitStmt(p, n)
of nkTryStmt, nkHiddenTryStmt: genTry(p, n, r)
of nkRaiseStmt: genRaiseStmt(p, n)

3
tests/js/tdiscard.nim Normal file
View File

@@ -0,0 +1,3 @@
import dom
discard Node()