summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug613151.js
blob: 6a3a24ae3ac7002014301043a0f8f10b7c526a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Iterating over a property with an Array id.
function n() {}
function g() {}
eval("\
  function a() {}\
  function b() {\
    for (w in this) {}\
    Object.defineProperty(\
      this, \
      new Array, \
      ({enumerable: true})\
    )\
  }\
  for (z in [0, 0, 0]) b()\
")

// Test it doesn't assert.