You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing a variable of type boolean to an adHelper function causes errors.
Steps to reproduce:
Create a model with variable type boolean. Populate model. Create an addHelper function. Loop over model list while passing values to an addHelper (haven't tested without the loop).
can-log.js:98 RangeError: Maximum call stack size exceeded
at Object.hydrateAst (expression.js:1)
at Object.hydrateAst (expression.js:315)
at Object.hydrateAst (expression.js:263)
at Object.hydrateAst (expression.js:315)
at Object.hydrateAst (expression.js:263)
at Object.hydrateAst (expression.js:315)
at Object.hydrateAst (expression.js:263)
at Object.hydrateAst (expression.js:315)
at Object.hydrateAst (expression.js:263)
at Object.hydrateAst (expression.js:315)
Expected results:
Should cast the type boolean and work :)
Actual results:
The error above.
Environment:
Software
Version
can-stache version
5.16.5
Browser
Chrome
Operating system
Mac os
Node
v8.12.0
The text was updated successfully, but these errors were encountered:
MarcGodard
changed the title
Passing a type boolean variable to an adHelper function causes errors
Passing a type boolean variable to an addHelper function causes errors
Nov 18, 2018
Much of the canjs site has been updated to run examples in codepen. I’d look here for a stache/component example you can start from: https://canjs.com/doc/guides/html.html
How often can you reproduce it?
Description:
Passing a variable of type boolean to an adHelper function causes errors.
Steps to reproduce:
Create a model with variable type boolean. Populate model. Create an addHelper function. Loop over model list while passing values to an addHelper (haven't tested without the loop).
with
Error:
Expected results:
Should cast the type boolean and work :)
Actual results:
The error above.
Environment:
The text was updated successfully, but these errors were encountered: