summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1226888.js
blob: 9ae6b4a500d3334064003823d46cad84ea0ee431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (!this.hasOwnProperty("TypedObject"))
  quit();

setJitCompilerOption('ion.forceinlineCaches', 1);
// Adapted from randomly chosen test: js/src/jit-test/tests/TypedObject/jit-write-references.js
with({}) {}
v = new new TypedObject.StructType({
    f: TypedObject.Any
})
gc();
function g() {
    v.f = {
        Object
    };
    v.f;
}
for (var i = 0; i < 9; i++) {
    g();
}