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

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

Closed
estebanm opened this Issue Jul 4, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@estebanm

estebanm commented Jul 4, 2012

Test case:

$ var buster = require('buster')
undefined
$ 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.

@cjohansen

This comment has been minimized.

Member

cjohansen commented Jul 5, 2012

Thanks for the test case, made it very simple to home in on it. Fixed: https://github.com/busterjs/buster-format/commit/869eb3887dee95a517666615498c087bcba6fe27

@cjohansen cjohansen closed this Jul 5, 2012

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