Closed tadatuta closed 6 years ago
What steps to reproduce that error?
bem-xjst version?
Obviously that error from JSON.stringify
which is not working with circular structure in JSON.
@miripiruni bem-xjst@8.6.7
Obviously that error from JSON.stringify which is not working with circular structure in JSON.
How can I exclude to use it in the future? Because I have not this problem while runtimeLint
was disabled.
@miripiruni looks like it's in https://github.com/bem/bem-xjst/blob/master/runtime-lint/index.js#L68 (and bellow)
Use util.inspect
for the justice!
@zxqfox we can not use util.inspect
because of different execution environment for bem-xjst (node.js and browsers). I would suggest a custom stringify function.
🎉
schedule.bemhtml.js.html.zip
// cc @Realetive