Issue metadata
Sign in to add a comment
|
Incorrect shift when array has empty first slot followed numbers
Reported by
da...@stuckmann.us,
Aug 8 2017
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 Steps to reproduce the problem: 1. create array (ie. a=[]) 2. Load elements 1 through n with numbers (not strings), leave first slot empty. 3. call a.shift() What is the expected behavior? The first slot is removed and the other elements are shifted one What went wrong? The last slot was removed. Did this work before? Yes Chrome release, 59 and below Chrome version: 60.0.3112.90 Channel: stable OS Version: OS X 10.12.4 Flash Version: here is a jsfiddle to demonstrate the issue: https://jsfiddle.net/dstuckmann/hemk0360/10/
,
Aug 9 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by brajkumar@chromium.org
, Aug 9 2017Components: -Blink Blink>JavaScript
Labels: -Pri-2 Needs-Triage-M60 ReleaseBlock-Stable M-60 OS-Linux OS-Windows Pri-1
Owner: tebbi@chromium.org
Status: Assigned (was: Unconfirmed)