From 9d9ecc3c1d774a71b4b866d7e503b25c307e7cbf Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Wed, 24 Aug 2022 15:28:46 +0800 Subject: [PATCH] fixes #20219; ignore comment/empty node in stmtListExpr (#20249) --- compiler/jsgen.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index b30d035793..39009bd2f0 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..