raycmorgan/Mu — Issue #17: Getting errors with repeated sections.
Author: brycebaril
Created: 2011-10-26 05:54:49+00:00
State: open

Using the v2 branch (npm default) I'm getting errors when simply just repeating sections. E.g.

{{#user}}
Hi {{name}}!
{{/user}}
...
{{#user}}
Bye {{name}}
{{/user}}

If user is found, this yields:

Error: Cyclic __proto__ value
at insertProto (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:174:17)
at section (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:137:17)
at next (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:53:20)
at next (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:38:16)
at next (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:32:27)
at next (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:38:16)
at next (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:48:18)
at next (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:38:16)
at render (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:84:3)
at section (/usr/local/lib/node/.npm/mu/0.5.2/package/lib/mu/renderer.js:138:5)