[JS IR] Materialize all JsCompositeBlock
^KT-60667 Fixed
This commit is contained in:
committed by
Space Team
parent
cd840997b1
commit
d0e4515ec1
@@ -828,7 +828,7 @@ public class JsToStringGenerationVisitor extends JsVisitor {
|
||||
}
|
||||
|
||||
private static JsStatement materialize(JsStatement statement) {
|
||||
return statement instanceof JsCompositeBlock && ((JsCompositeBlock) statement).getStatements().size() > 1
|
||||
return statement instanceof JsCompositeBlock
|
||||
? new JsBlock(statement)
|
||||
: statement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user