From de38d24aac0b0be886abca7ce574a147b6c8742c Mon Sep 17 00:00:00 2001 From: xflywind <43030857+ringabout@users.noreply.github.com> Date: Sat, 20 Aug 2022 10:57:37 +0800 Subject: [PATCH] fixes #20219; ignore comment/empty node in stmtListExpr --- compiler/jsgen.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index 60d10f58de5df..5829a992a6eca 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -320,6 +320,10 @@ proc isSimpleExpr(p: PProc; n: PNode): bool = for c in n: if not p.isSimpleExpr(c): return false result = true + elif n.kind == nkStmtListExpr: + for i in 0..