veged / xjst

Extensible JavaScript Transformations

Home Page:http://veged.github.com/xjst/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Show context on `RangeError: Maximum call stack size exceeded`

veged opened this issue · comments

Show context on `RangeError: Maximum call stack size exceeded`

I'm afraid it isn't possible without wrapping everything into try...catch blocks, which is just terrible for performance. Though, it might be done in development mode.

Thoughts?

we have the same one object for context in all recursive calls -- so we just need to dump it somehow