dustjs
dustjs copied to clipboard
too much recursion: that can lead to a infinite loop when resolving values
One of the use cases that can lead to this issue
{#male root="{title}" title="Mrs"} {root} {#names:female title="{title}" period="."} {title}{period} {.}{~n} {/names} {/male}
too much recursion elem = elem(this, context, null, {auto: auto, filters: filters});
{ "female" : { "title" : "Senorita" }, "title": "Sir", "names": ['Javier'], "male" : { "title" : "Senor" }, }
The issue is related to have same name aliases , title=title or title="{title}" in nested levels
I've also ran into this issue. Is there any news or plans for fix?
Can someone articulate what is expected? Should we fail silently and output nothing?
It currently (dust 2.2) seems to fail silently and put out nothing.