New issue
Advanced search Search tips

Issue 681139 link

Starred by 5 users

Issue metadata

Status: Duplicate
Merged: issue 673008
Owner: ----
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Object#hasOwnProperty can sometimes produce inconsistent results

Reported by n...@sencha.com, Jan 13 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36

Steps to reproduce the problem:
Run this code:

    map = {};
    keys = [1025, -18, -19];
    for (i = 0; i < keys.length; i++) {
        key = keys[i];
        map[key] = i;
    }
    alert('key in map: ' + (keys[2] in map) + '\r\n' +
        'map.hasOwnProperty(key): ' + map.hasOwnProperty(keys[2]));

What is the expected behavior?
Both logged conditions should be true. keys[2] is a property key in map.

What went wrong?
hasOwnProperty returns false

Did this work before? Yes Chrome 54

Chrome version: 55.0.2883.95  Channel: stable
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 24.0 r0
 
bug.html
370 bytes View Download
Components: -Blink Blink>JavaScript
Please fix

Comment 3 by woxxom@gmail.com, Jan 13 2017

Duplicate of  issue 673008 .

Broken in r416717 "Update V8 to version 5.5.106"
Fixed in r438144 "Update V8 to version 5.7.213.1"

Mergedinto: 673008
Status: Duplicate (was: Unconfirmed)
Thanks @woxxom for finding the Duplicate.
Merged this issue into 673008, please undo if not the case. 

Sign in to add a comment