Skip to content
Permalink
Browse files
JEXL-359: subtle refactor to allow implementing a 3.2-like interpreter;
  • Loading branch information
henrib committed Feb 18, 2022
1 parent 3efa7e5 commit 4035ad0fb06b0ce3597dd01f9888d1be86205ee3
Showing 1 changed file with 2 additions and 3 deletions.
@@ -332,9 +332,8 @@ protected Object getVariable(final Frame frame, final LexicalScope block, final
// is it defined ?
if (!context.has(name)) {
// not defined, ignore in some cases...
final boolean ignore =
(isSafe() && (symbol >= 0 || identifier.jjtGetParent() instanceof ASTAssignment))
|| (identifier.jjtGetParent() instanceof ASTReference);
final boolean ignore = identifier.jjtGetParent() instanceof ASTReference
|| (isSafe() && (symbol >= 0 || identifier.jjtGetParent() instanceof ASTAssignment));
if (!ignore) {
return undefinedVariable(identifier, name); // undefined
}

0 comments on commit 4035ad0

Please sign in to comment.