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

`toEqual` goes into infinite recursion for cyclic data #258

marciof opened this Issue Aug 10, 2012 · 3 comments


None yet
3 participants

marciof commented Aug 10, 2012

For example:

var x = {}, y = {};
x.o = x;
y.o = y;

Throws "RangeError: Maximum recursion depth exceeded".


This comment has been minimized.


cjohansen commented Aug 16, 2012

I'm unable to reproduce both with HEAD and 0.6.2. What version are you on?


This comment has been minimized.

marciof commented Aug 17, 2012

I'm using version 0.6.2 Beta 4, on Ubuntu 11.04, with browser tests running on Opera 12.01.


This comment has been minimized.


dwittner commented Aug 26, 2013

Fixed by e304d5c

@dwittner dwittner closed this Aug 26, 2013

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