Skip to content

Commit

Permalink
one more case similar to #1687
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Jul 22, 2021
1 parent ef6b28b commit 10b2532
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2132,8 +2132,8 @@ public Variable evalKarateExpression(String text, boolean forMatch) {
// don't re-evaluate if this is clearly a direct reference to a variable
// this avoids un-necessary conversion of xml into a map in some cases
// e.g. 'Given request foo' - where foo is a Variable of type XML
if (vars.containsKey(text)) {
return vars.get(text);
if (JS.bindings.hasMember(text)) {
return new Variable(JS.get(text));
}
boolean callOnce = isCallOnceSyntax(text);
if (callOnce || isCallSyntax(text)) { // special case in form "callBegin foo arg"
Expand Down

0 comments on commit 10b2532

Please sign in to comment.