mirror of https://github.com/tc39/test262.git
Promise.any: simplify promise creation
This commit is contained in:
parent
5c68b60ad3
commit
7fbce5a9d8
|
@ -20,7 +20,7 @@ features: [Promise.any, Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
let error = new Test262Error();
|
let error = new Test262Error();
|
||||||
let promise = new Promise(() => {});
|
let promise = Promise.resolve();
|
||||||
let returnCount = 0;
|
let returnCount = 0;
|
||||||
let iter = {
|
let iter = {
|
||||||
[Symbol.iterator]() {
|
[Symbol.iterator]() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ flags: [async]
|
||||||
features: [Promise.any, Symbol.iterator]
|
features: [Promise.any, Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
let error = new Test262Error();
|
let error = new Test262Error();
|
||||||
let promise = new Promise(() => {});
|
let promise = Promise.resolve();
|
||||||
let returnCount = 0;
|
let returnCount = 0;
|
||||||
let iter = {
|
let iter = {
|
||||||
[Symbol.iterator]() {
|
[Symbol.iterator]() {
|
||||||
|
|
|
@ -19,7 +19,7 @@ flags: [async]
|
||||||
features: [Promise.any]
|
features: [Promise.any]
|
||||||
---*/
|
---*/
|
||||||
let error = new Test262Error();
|
let error = new Test262Error();
|
||||||
let promise = new Promise(() => {});
|
let promise = Promise.resolve();
|
||||||
|
|
||||||
Object.defineProperty(promise, 'then', {
|
Object.defineProperty(promise, 'then', {
|
||||||
get() {
|
get() {
|
||||||
|
|
Loading…
Reference in New Issue