summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug579602.js
blob: 113a34ddaa9c4ba64727e1a5efceb4979ce7f8d8 (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 in rv) (function() {})
x = new Proxy({}, (function() {
  return {
    defineProperty: gc
  }
})());
with({
  d: (({
    x: Object.defineProperty(x, "", ({
      set: Array.e
    }))
  }))
}) {}

// don't crash