You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error comes from WithContext doesn't take into consideration that we can inject function through the Compile options with expr.Function
with the change https://github.com/expr-lang/expr/pull/504/files we loose track of what the arguments should be with the function and the patcher can only see the function as having the arguments []any instead of the arguments we want the function to have.
Here is a test that is in the same style as TestWithContext but using expr.Function instead of applying the function to the env
The error comes from WithContext doesn't take into consideration that we can inject function through the Compile options with expr.Function
with the change https://github.com/expr-lang/expr/pull/504/files we loose track of what the arguments should be with the function and the patcher can only see the function as having the arguments
[]any
instead of the arguments we want the function to have.Here is a test that is in the same style as TestWithContext but using expr.Function instead of applying the function to the env
Originally posted by @tw1nk in #514 (reply in thread)
The text was updated successfully, but these errors were encountered: