Browse Source

Implement optional pass parameter of for loop to be null when not defined

Lucas de Souza 5 years ago
parent
commit
f93f36ceef
1 changed files with 0 additions and 3 deletions
  1. 0 3
      js/ast/ivprogParser.js

+ 0 - 3
js/ast/ivprogParser.js

@@ -897,9 +897,6 @@ export class IVProgParser {
     const for_from = this.parseForFrom();
     const for_to = this.parseForTo();
     let maybePass = this.parseForPass();
-    if (maybePass == null) {
-      maybePass = new Expressions.IntLiteral(toInt(1));
-    }
     this.consumeNewLines();
     const commandsBlock = this.parseCommandBlock();
     this.popScope();