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 multiple callback calls, issue #1029 #1049

Merged
merged 3 commits into from Jan 15, 2018

Conversation

devoidfury
Copy link
Contributor

Summary

Proposed change:

Fix an issue where an error thrown from a conditionally included template will call the provided callback twice. See the included test for details; fails against master but passes with this change.

Closes #1029

Checklist

  • Tests are added / updated to cover proposed change.
  • Changelog has an entry for proposed change (if user-facing fix or feature).

@fdintino fdintino merged commit d1bdf30 into mozilla:master Jan 15, 2018
@fdintino
Copy link
Collaborator

I ran into this problem while trying to write tests for nunjucks slim and was nearly driven insane before finding this pull request. Thanks!

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.

env.render() invokes the callback twice
2 participants