Allow wrapping break/continue/return statements

This commit is contained in:
sergeych committed 2026-02-08 21:47:36 +03:00
1 parent b857686d7d
commit 40a55f298e
1 file changed
+1 -4
@@ -1607,10 +1607,7 @@ class Compiler(
}
if (stmt is FunctionDeclStatement ||
stmt is ClassDeclStatement ||
stmt is EnumDeclStatement ||
stmt is BreakStatement ||
stmt is ContinueStatement ||
stmt is ReturnStatement
stmt is EnumDeclStatement
) {
return stmt
}