dustjs icon indicating copy to clipboard operation
dustjs copied to clipboard

too much recursion: that can lead to a infinite loop when resolving values

Open vybs opened this issue 11 years ago • 3 comments

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

vybs avatar Jul 17 '13 16:07 vybs

I've also ran into this issue. Is there any news or plans for fix?

chaddy81 avatar Aug 23 '13 16:08 chaddy81

Can someone articulate what is expected? Should we fail silently and output nothing?

jimmyhchan avatar Aug 23 '13 19:08 jimmyhchan

It currently (dust 2.2) seems to fail silently and put out nothing.

rragan avatar Dec 13 '13 22:12 rragan