summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug639311.js
blob: 277d0c3d10898959ce4fdc2385dddd9faa830bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Avoid use-after-free while sweeping type objects. */

try {
  Reflparse("")
} catch(e) {}
Reflect.parse("for(var a;a;j){if(a%2==0){c()}}")
try {
  (function() {
    for (a = 0;; j) {
      gc()
    }
  })()
} catch(e) {
  delete this.Math
}
gc()
Reflect.parse("{ let x; }")
gc()