summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1502709.js
blob: 535443050d7d11e546fe61c91dc0eb366356aa4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
setJitCompilerOption("baseline.warmup.trigger", 0);
main();

function main() {
    try {
        x = [];
        Object.defineProperty(x, 1, {});
        y = [];
        Object.defineProperty(y, 1, {});
        y.__proto__ = null;
        Array.prototype.sort.apply(x, [function() {}]);
    } catch (e) {}
    try {
        Array.prototype.sort.apply(y, [function() {}]);
    } catch (e) {}
}