summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/incremental-AccessorShape-barrier.js
blob: 0055e2c51f6b756a8d765808c795dd8a61b96c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
gczeal(0);
gc();

var o = {};
function foo() {
    var i = 0;
    startgc(0);
    Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
                                                         set: function s() { return i; }});
    Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
                                                         set: function s() { return i; }});
    Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
                                                         set: function s() { return i; }});
    Object.defineProperty(o, 'foo', {configurable: true, get: function g() { return i; },
                                                         set: function s() { return i; }});
    abortgc();
}
foo();