summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/TypedObject/bug1096016.js
blob: 48b0d9ac57b81f0e95241380955f1edc1fbbd5b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (typeof TypedObject === "undefined")
  quit();

var T = TypedObject;
var ObjectStruct = new T.StructType({f: T.Object});
var o = new ObjectStruct();
function testGC(o, p) {
    for (var i = 0; i < 5; i++) {
        minorgc();
        o.f >>=  p;
    }
}
testGC(o, {});