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

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

Closed
marciof opened this Issue Aug 10, 2012 · 3 comments

Comments

Projects
None yet
3 participants
@marciof

marciof commented Aug 10, 2012

For example:

var x = {}, y = {};
x.o = x;
y.o = y;
expect(x).toEqual(y);

Throws "RangeError: Maximum recursion depth exceeded".

@cjohansen

This comment has been minimized.

Member

cjohansen commented Aug 16, 2012

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

@marciof

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.

@dwittner

This comment has been minimized.

Member

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.