diff --git a/src/nodes/IfStatement.ts b/src/nodes/IfStatement.ts index f5d979f..57182e8 100644 --- a/src/nodes/IfStatement.ts +++ b/src/nodes/IfStatement.ts @@ -94,25 +94,13 @@ export default function IfStatement( : ""}`]; prc.count += 7; const oldPRC = prc; - /*for ( - const node of (typedNode.consequent as swc.BlockStatement) - .stmts - ) { - ourInsts = ourInsts.concat( - resolveNode( - node, - prc, - variableModificationThings, - variablesTable, - ), - ); - }*/ - BlockStatement( - typedNode.consequent, - variablesTable, - variableModificationThings, - prc, - ourInsts, + ourInsts = ourInsts.concat( + ...resolveNode( + typedNode.consequent, + prc, + variableModificationThings, + variablesTable, + ), ); ourInsts[0] = ourInsts[0].replace( "TODO",