This commit is contained in:
Jordi Baylina
2020-03-28 21:26:43 +01:00
parent fcef4f5f32
commit 80cce0ccbb
5 changed files with 23 additions and 19 deletions

View File

@@ -624,6 +624,9 @@ function execReturn(ctx, ast) {
function execVariable(ctx, ast) {
const v = ctx.refs[ast.refId];
if (!v) {
return ctx.throwError(ast, "Variable not defined: "+ast.name);
}
const sels = [];
for (let i=0; i< ast.selectors.length; i++) {