Browse Source

[FIX] Return always getting a null expression

Lucas de Souza 6 năm trước cách đây
mục cha
commit
b02864e859
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      js/ast/ivprogParser.js

+ 1 - 1
js/ast/ivprogParser.js

@@ -690,7 +690,7 @@ export class IVProgParser {
     this.pos++;
     let exp = null;
     if(!this.checkEOS(true)) {
-      const exp = this.parseExpressionOR();
+      exp = this.parseExpressionOR();
       this.checkEOS();
     }
     this.pos++;