This repository has been archived by the owner. It is now read-only.

buster.format.ascii dies with certain cyclic structures #215

estebanm opened this Issue Jul 4, 2012 · 1 comment


None yet
2 participants

estebanm commented Jul 4, 2012

Test case:

$ var buster = require('buster')
$ var obj = {}; obj.list1 = [obj]; obj.list2 = [obj];
[ { list1: [ [Circular] ], list2: [Circular] } ]
$ buster.format.ascii(obj)
RangeError: Maximum call stack size exceeded

This might be the same problem as #124. As I'm not sure, I'm filing separately.


This comment has been minimized.


cjohansen commented Jul 5, 2012

Thanks for the test case, made it very simple to home in on it. Fixed:

@cjohansen cjohansen closed this Jul 5, 2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.