My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  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, odva...@gmail.com


Sign in to add a comment
 
Project Member Reported by sebastia...@gmail.com, 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.

Sebastian
Sep 3, 2012
Project Member #1 sebastia...@gmail.com
Also issue 4732 might be solved by this.

Sebastian
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 sebastia...@gmail.com
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:
https://crash-stats.mozilla.com/report/index/bp-b2bf7674-6846-4078-9311-b33572120903

Sebastian
Sep 3, 2012
Project Member #4 simon.lindholm10
That's probably https://bugzilla.mozilla.org/show_bug.cgi?id=768446 which was fixed in Firefox 16.
Sep 3, 2012
Project Member #5 sebastia...@gmail.com
Probably yes. At least trying it on FF 18.0a1 doesn't crash the browser.

Sebastian
Sign in to add a comment

Powered by Google Project Hosting