-
Notifications
You must be signed in to change notification settings - Fork 641
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
Synchronous for+include generate asynchronous code instead of synchronous #527
Comments
@jlongster Do you have any comment on this? I'm not really familiar with the async stuff at all. |
@tdelmas The commit you linked certainly seems wrong to me. Simply using an Unless @jlongster weighs in to defend that commit, I will plan to revert it. |
@carljm Anything blocking the revert? I just ran into this as it made it impossible to catch errors in includes, so I would love to see this fixed. |
I think I was hoping to get more of an explanation from @jlongster before reverting, but since that doesn't seem to be forthcoming, I'll go ahead and revert it today. |
Thank you! |
According to the documentation :
https://mozilla.github.io/nunjucks/templating.html#asynceach
Before, the compilation of
The compilation generate synchronous calls but after that commit :
7d4716f
the same code is considered as asynchronous.
According to the documentation, the writer of the template is supposed to decide between for and asyncEach but according to that commit, to compiler for the code to be asynchronous.
As the recursion limits of Firefox and safari can be as low as 500, it became really easy to hit these limits.
Am I missing something ?
The text was updated successfully, but these errors were encountered: