If without else

This commit is contained in:
Jordi Baylina
2018-10-24 19:59:50 +02:00
parent e685392523
commit 4fa0c79e26
3 changed files with 12 additions and 6 deletions

View File

@@ -578,8 +578,10 @@ function execIf(ctx, ast) {
exec(ctx, ast.then);
if (ctx.error) return;
} else {
exec(ctx, ast.else);
if (ctx.error) return;
if (ast.else) {
exec(ctx, ast.else);
if (ctx.error) return;
}
}
}