Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix literal comparing issue for injected variables #357

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

ysugimoto
Copy link
Owner

Fixes #350

Fix literal related issue on interpreter.
When some variable values are injected via testing.inject_variable() function, the value will be a literal.
And then an interpreter compares expression between left-side and right-side, injected values are treated as literal and it cause an error about literal comparison.

This PR fixes this problem by enforcing injected variables are NOT literal.
We add #350 reproduceable VCL as testing, they should be passed.

@ysugimoto ysugimoto merged commit bd90d42 into main Sep 26, 2024
3 checks passed
@ysugimoto ysugimoto deleted the fix/enforce-not-literal-for-injected-variables branch September 26, 2024 18:01
@ysugimoto ysugimoto changed the title fix literal coparing issue for injected variables fix literal comparing issue for injected variables Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant