diff --git a/src/main/java/de/neuland/pug4j/expression/GraalJsExpressionHandler.java b/src/main/java/de/neuland/pug4j/expression/GraalJsExpressionHandler.java index 924714f..006ccf6 100644 --- a/src/main/java/de/neuland/pug4j/expression/GraalJsExpressionHandler.java +++ b/src/main/java/de/neuland/pug4j/expression/GraalJsExpressionHandler.java @@ -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 cache = cacheThreadLocal.get(); -// context.enter(); + context.enter(); try{ saveLocalVariableName(expression, model); Value jsContextBindings = context.getBindings("js"); @@ -109,7 +109,7 @@ public Object evaluateExpression(String expression, PugModel model) throws Expre } throw new ExpressionException(expression, ex); }finally { -// context.leave(); + context.leave(); } }