summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Promise/any-stack-overflow.js
blob: 8f3919e90a642b377414388c8af0fac9e96ef38a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Bug 1646317 - Don't assert on stack overflow under Promise.any().

if ("ignoreUnhandledRejections" in this) {
  ignoreUnhandledRejections();
}

Array.prototype[Symbol.iterator] = function*() {
  let rejected = Promise.reject(0);
  let p = Promise.any([rejected]);
}
new Set(Object.keys(this));
new Set(Object.keys(this));

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