Allow wrapping break/continue/return statements
This commit is contained in:
parent
b857686d7d
commit
40a55f298e
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user