aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/qtbug_46022.js
blob: 385d7f9e9795f99af0a3539e1823cb9ea9716c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var obj = {}
obj[5289] = 0
obj[5290] = 0
obj[5288] = 0
obj[5287] = 0
delete obj[5288]

var a = Object.getOwnPropertyNames(obj)
var test1 = a.every(function(key) {
  return obj.hasOwnProperty(key)
})

obj = {}
obj[8187] = 0
obj[8188] = 0
delete obj[8187]

var b = Object.getOwnPropertyNames(obj)
var test2 = b.every(function(key) {
  return obj.hasOwnProperty(key)
})