Skip to content

Conversation

@dylanahsmith
Copy link
Contributor

Problem

#115 fixed ArgumentError translation for Liquid::Variable#render, but Liquid::Context#evaluate was still doing a direct function call in C to the implementation of Liquid::C::Expression#evaluate. As a result, the error was still not being translated properly.

Solution

The first commit refactors the variable expression evaluation to provide an internal_variable_expression_evaluate function for context.c.

The second commit fixes the bug by checking the class in context_evaluate to call internal_variable_expression_evaluate for a cLiquidCVariableExpression.

@dylanahsmith dylanahsmith merged commit dd2909b into 2020-stable Feb 9, 2021
dylanahsmith added a commit that referenced this pull request Feb 9, 2021
Fix filter error translation for context evaluate of variable expression

(cherry picked from commit dd2909b)
@dylanahsmith dylanahsmith deleted the fix-variable-filter-translation branch February 10, 2021 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants