summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/bug540131-2.js
blob: ebd3e0203a8e124e0f02f8d1da7fd5c0193c8bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| error: TypeError
(function() {
  for (let z in [true]) {
    (new(eval("for(l in[0,0,0,0]){}"))
     (((function f(a, b) {
      if (a.length == b) {
        return (z)
      }
      f(a, b + 1)
    })([,,], 0)), []))
  }
})()