Issue metadata
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
,
Jan 13 2017
Please fix
,
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"
,
Jan 16 2017
Thanks @woxxom for finding the Duplicate. Merged this issue into 673008, please undo if not the case. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Jan 13 2017