Allow wrapping break/continue/return statements

This commit is contained in:
Sergey Chernov 2026-02-08 12:17:44 +03:00
parent b857686d7d
commit 40a55f298e

View File

@ -1607,10 +1607,7 @@ class Compiler(
} }
if (stmt is FunctionDeclStatement || if (stmt is FunctionDeclStatement ||
stmt is ClassDeclStatement || stmt is ClassDeclStatement ||
stmt is EnumDeclStatement || stmt is EnumDeclStatement
stmt is BreakStatement ||
stmt is ContinueStatement ||
stmt is ReturnStatement
) { ) {
return stmt return stmt
} }