Skip to content

Commit

Permalink
GraalJS: add enter/leave context
Browse files Browse the repository at this point in the history
  • Loading branch information
chbloemer committed Jan 18, 2025
1 parent 4285325 commit 8480d7d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Boolean evaluateBooleanExpression(String expression, PugModel model) thro
public Object evaluateExpression(String expression, PugModel model) throws ExpressionException {
Context context = contextThreadLocal.get();
Map<String,Value> cache = cacheThreadLocal.get();
// context.enter();
context.enter();
try{
saveLocalVariableName(expression, model);
Value jsContextBindings = context.getBindings("js");
Expand Down Expand Up @@ -109,7 +109,7 @@ public Object evaluateExpression(String expression, PugModel model) throws Expre
}
throw new ExpressionException(expression, ex);
}finally {
// context.leave();
context.leave();
}
}

Expand Down

0 comments on commit 8480d7d

Please sign in to comment.