New issue
Advanced search Search tips

Issue 755719 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 734314
Owner: ----
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Element removed with array.prototype.pop() appears again.

Reported by conta...@guidokritz.com, Aug 15 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36

Steps to reproduce the problem:
1. Sample code:

var my_array = [];
var foo = {'foo':'foo'};
var bar = {'bar':'bar'};
my_array[1] = foo;
my_array.pop();
my_array[2] = bar;

What is the expected behavior?
my_array[1] === undefined // This should be true since element on index 1 was removed by pop();

What went wrong?
my_array[1] === foo // After setting a value for index 2, the element on index 1 is present again.

Did this work before? Yes 

Chrome version: 60.0.3112.90  Channel: n/a
OS Version: 10.0
Flash Version:
 

Comment 1 by woxxom@gmail.com, Aug 16 2017

Duplicate of  issue 734314 , also confirmed by bisecting.
The bug is fixed in Chrome 61.0.3142.0 by r482281 v8 roll.
Mergedinto: 734314
Status: Duplicate (was: Unconfirmed)
The issue looks similar to issue id: 734314. hence, merging into issue id: 734314.
Thanks...!!
Labels: Needs-Triage-M60

Sign in to add a comment