summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1483188.js
blob: 0aebdba25c098afd7f065c4f32de4f2f8f403e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var P = newGlobal().eval(`
(class extends Promise {
    static resolve(o) {
        return o;
    }
});
`);
var alwaysPending = new Promise(() => {});
function neverCalled() {
    assertEq(true, false);
}
P.race([alwaysPending]).then(neverCalled, neverCalled);