Explorar el Código

[FIX] Return always getting a null expression

Lucas de Souza hace 6 años
padre
commit
b02864e859
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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++;