summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug579602.js
blob: 3ad40a64ad9217238ff2fe8d091bec909f66b405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// don't panic

f = function*() {
  x = yield
}
rv = f()
for (a of rv) (function() {})
x = new Proxy({}, (function() {
  return {
    defineProperty: gc
  }
})());
with({
  d: (({
    x: Object.defineProperty(x, "", ({
      set: Array.e
    }))
  }))
}) {}

// don't crash