Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5311 closed bug (invalid)

qunit dies on cyclic data-structures

Reported by: dwt Owned by: joern
Priority: major Milestone: 1.4
Component: qunit Version: 1.3.2
Keywords: Cc: felix.schwarz@…
Blocked by: Blocking:

Description

If you try this testcase (Firefox recommended, Safari just goes into an infinite ram eating mode) it should give a proper error message - instead it just goes into infinite recursion.

test("must not die on test failure", function() {
	var first = {};
	var second = {first:first};
	first.second = second;
	try {
		same(first, second); // same with equals
	}
	catch (exception) {
		ok( ! (/too much recursion/).test(exception.message), 'should never die of too much recursion error');
	}
});

Change History (1)

comment:1 Changed 10 years ago by john

Resolution: invalid
Status: newclosed

We're moving QUnit-related bugs off to the new QUnit issue tracker: http://github.com/jquery/qunit/issues

Please re-post the issue there.

Note: See TracTickets for help on using tickets.