[Webkit-unassigned] [Bug 75561] New: Web Inspector: console.log shows incorrect value for array if array is modified after statement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 4 11:28:13 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=75561

           Summary: Web Inspector: console.log shows incorrect value for
                    array if array is modified after statement
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rc at rchowe.com
                CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
                    pmuellr at yahoo.com, joepeck at webkit.org,
                    pfeldman at chromium.org, yurys at chromium.org,
                    bweinstein at apple.com, apavlov at chromium.org,
                    loislo at chromium.org


The code

> var array = [1,2,3];
> console.log( array );
> array.reverse();

produces [3,2,1], when it should produce [1,2,3]. If the array.reverse() is taken out, it produces [1,2,3].

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list