Bug 75561 - Web Inspector: console.log shows incorrect value for array if array is modified after statement
Summary: Web Inspector: console.log shows incorrect value for array if array is modifi...
Status: RESOLVED DUPLICATE of bug 35801
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-04 11:28 PST by RC Howe
Modified: 2012-03-19 06:49 PDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***