joyent/node — pull request #8758 by nathanmacinnes (2014-11-21 00:06:29+00:00)
Title: Proposed fix for #8696, replacing circular references with "[Circular]"

JSON is used to create error messages when assertions fail. This causes a TypeError when there are circular references. This commit replaces circular references with the string "[Circular]"