My favorites | Sign in
Project Home Wiki Issues
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 5794: Fix display of recursive arrays
1 person starred this issue and may be notified of changes. Back to list
Status:  Triaged
Owner:  ----
Cc:  simon.lindholm10,

Sign in to add a comment
Project Member Reported by, Aug 7, 2012
This is a split of  issue 3663  (see comment 22)

What steps will reproduce the problem?
1. Open Firebug on this page
2. Enable and switch to the Console panel
3. Reload the page
4. Type "a = []; b = [a]; a.push(b); a" (without quotes) into the Command Line and hit Enter

What is the expected output? What do you see instead?
The output should look like [[...]] like it was done for infinite recursions in  issue 3663 . Instead you'll see countless opening and closing square brackets.

Simon also mentions "a = {}; a.a = a; a" and "a = []; b = {a: a}; a.push(b); a", though they produce nice output IMO.

Tested with FF 17.0a1 + FB 1.11a0 on Win7.

Sep 3, 2012
Project Member #1
Also issue 4732 might be solved by this.

Sep 3, 2012
Project Member #2 simon.lindholm10
Or this solved by the other, more probably (this is only about the subcase of infinite recursion, that one is more general).
Sep 3, 2012
Project Member #3
You're right.
Though this could already be fixed by displaying [[...]]. So this one may not depend on 4732, but 4732 would fix all those cases.

Btw. executing the test case using FF 15.0 + FB 1.10.2 on Win7 crashes Firefox:

Sep 3, 2012
Project Member #4 simon.lindholm10
That's probably which was fixed in Firefox 16.
Sep 3, 2012
Project Member #5
Probably yes. At least trying it on FF 18.0a1 doesn't crash the browser.

Sign in to add a comment

Powered by Google Project Hosting