Skip to content

Conversation

@rwaldron
Copy link
Contributor

@rwaldron rwaldron commented Mar 16, 2020

Do not merge.

@rwaldron rwaldron mentioned this pull request Mar 16, 2020
@leobalter
Copy link
Member

Ok, I had a rerun on the CI and the results look accurate now. They were previously passing on most engines but "v8 --harmony"

@rwaldron
Copy link
Contributor Author

@leobalter if you have time to review this, I would appreciate that.

cc @devsnek @phoddie (who have existing implementations)

@rwaldron rwaldron changed the title [WIP] Promise.any & AggregateError tests (supercedes and closes gh-2437) Promise.any & AggregateError tests (supercedes and closes gh-2437) Mar 18, 2020
@@ -0,0 +1,106 @@
// Copyright (C) 2019 Sergey Rubanov. All rights reserved.
Copy link
Contributor Author

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.
Copy link
Contributor Author

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

@rwaldron rwaldron dismissed leobalter’s stale review March 25, 2020 16:15

Revisions made

@leobalter
Copy link
Member

@rwaldron
Copy link
Contributor Author

@leobalter all set.

@leobalter leobalter merged commit 4bf836c into master Mar 28, 2020
@leobalter leobalter deleted the promise-any branch March 28, 2020 03:18

class Custom extends Promise {
static get [Symbol.species]() {
throw new Test262Error('Erroneous Get(C, @@species) via SpeciesConstructor() occurred.');
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump

Copy link
Member

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.');
Copy link
Member

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);
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, whoops. Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants