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: for throws undefined var with a null value with strictVariables. #640

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

ebobby
Copy link
Contributor

@ebobby ebobby commented Aug 16, 2023

Please advise if this ain't the right way to fix this. I think I didn't break anything and this may catch other cases of the same problem.

Fixes: 639

src/context/context.ts Outdated Show resolved Hide resolved
test/integration/tags/for.spec.ts Show resolved Hide resolved
@ebobby
Copy link
Contributor Author

ebobby commented Aug 18, 2023

@harttle Changed as requested.

@harttle harttle merged commit dc6a301 into harttle:master Aug 19, 2023
11 checks passed
@ebobby ebobby deleted the for-undefined-variable branch August 21, 2023 16:12
@github-actions
Copy link

🎉 This PR is included in version 10.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

for is not behaving properly (as defined by Ruby's liquid) when a value is null.
2 participants