summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Promise/bug-1288382.js
blob: f954d62790fd580ab0193f0b344fba258c7b6feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if (!this.Promise) {
    this.reportCompare && reportCompare(true, true);
    quit(0);
}

// This just shouldn't trigger a failed assert.
// It does without bug 1288382 fixed.
Promise.all.call(class {
  constructor(exec){ exec(()=>{}, ()=>{}); }
  static resolve() { return {then(){}}; }
}, [null]);

this.reportCompare && reportCompare(true, true);