-
Notifications
You must be signed in to change notification settings - Fork 520
Promise.any & AggregateError tests (supercedes and closes gh-2437) #2533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Ok, I had a rerun on the CI and the results look accurate now. They were previously passing on most engines but "v8 --harmony" |
|
@leobalter if you have time to review this, I would appreciate that. |
| @@ -0,0 +1,106 @@ | |||
| // Copyright (C) 2019 Sergey Rubanov. All rights reserved. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not change anything in this file
| @@ -0,0 +1,107 @@ | |||
| // Copyright (C) 2019 Sergey Rubanov. All rights reserved. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not change anything in this file
test/built-ins/Promise/any/does-not-perform-species-get-of-custom.js
Outdated
Show resolved
Hide resolved
test/built-ins/Promise/any/does-not-perform-species-get-of-promise.js
Outdated
Show resolved
Hide resolved
test/built-ins/Promise/any/resolve-from-resolve-reject-finally.js
Outdated
Show resolved
Hide resolved
|
LGTM, please resolve the lint errors before we land the tests. |
|
@leobalter all set. |
|
|
||
| class Custom extends Promise { | ||
| static get [Symbol.species]() { | ||
| throw new Test262Error('Erroneous Get(C, @@species) via SpeciesConstructor() occurred.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Promise.prototype.then uses SpeciesConstructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2557 to keep track of it
|
|
||
| Object.defineProperty(Promise, Symbol.species, { | ||
| get() { | ||
| throw new Test262Error('Erroneous Get(C, @@species) via SpeciesConstructor() occurred.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same issue here.
| return boundThen(resolver, rejectElement); | ||
| }; | ||
|
|
||
| Promise.any([promise]).then(() => $DONE(), $DONE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
promise is never resolved, so $DONE is never called, and this test always times out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof, whoops. Good catch!
Do not merge.