Skip to main content

Bug Tracker

Side navigation

#5311 closed bug (invalid)

Opened September 30, 2009 02:36PM UTC

Closed February 05, 2010 09:39PM UTC

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:
Blocked by: Blocking:

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');

Attachments (0)
Change History (1)

Changed February 05, 2010 09:39PM UTC by john comment:1

resolution: → invalid
status: newclosed

We're moving QUnit-related bugs off to the new QUnit issue tracker:

Please re-post the issue there.