Bug 75561

Summary: Web Inspector: console.log shows incorrect value for array if array is modified after statement
Product: WebKit Reporter: RC Howe <rc>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description RC Howe 2012-01-04 11:28:13 PST
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].
Comment 1 Timothy Hatcher 2012-03-19 06:49:02 PDT

*** This bug has been marked as a duplicate of bug 35801 ***