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 |
RC Howe
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].
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Timothy Hatcher
*** This bug has been marked as a duplicate of bug 35801 ***