浏览代码

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

Lucas de Souza 5 年之前
父节点
当前提交
f93f36ceef
共有 1 个文件被更改,包括 0 次插入3 次删除
  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();