File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ export class ForHelper {
2626 switch ( condition . operatorToken . kind ) {
2727 case ts . SyntaxKind . LessThanEqualsToken :
2828 case ts . SyntaxKind . GreaterThanEqualsToken :
29- return transpiler . transpileExpression ( condition . right ) ;
29+ return transpiler . transpileExpression ( condition . left ) ;
3030 case ts . SyntaxKind . LessThanToken :
31- return transpiler . transpileExpression ( condition . right ) + "+1" ;
31+ return transpiler . transpileExpression ( condition . left ) + "+1" ;
3232 case ts . SyntaxKind . GreaterThanToken :
33- return transpiler . transpileExpression ( condition . right ) + "-1" ;
33+ return transpiler . transpileExpression ( condition . left ) + "-1" ;
3434 default :
3535 throw new TranspileError ( "Unsupported for-loop condition operator: " + tsEx . enumName ( condition . operatorToken , ts . SyntaxKind ) , condition ) ;
3636 }
You can’t perform that action at this time.
0 commit comments