-
Notifications
You must be signed in to change notification settings - Fork 489
Port tests from Promise.all to Promise.allSettled #2124
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
8ae055d
to
481708c
Compare
481708c
to
4bd5852
Compare
I only need to finish reviewing my own tests and it's good for a review |
This is now all set! v8 with the --harmony flag is pretty close to have full compliance, nice job! cc @gsathya @mathiasbynens |
@gsathya Could you take a look at the failing tests please? |
Ref. tc39/proposal-promise-allSettled#11. |
@mathiasbynens @gsathya I think we should limit the resolve lookup to only happen if the iterable has at least one item to iterate with. This requires some fix in the spec text. WDYT? Current status (shown in the tests) will always get the |
The failing test checking the built-in function name is also happening in the tests for Promise.all |
One is the unimplemented optimization (tc39/proposal-promise-allSettled#40) and the other is a known web compat issue with function name.
Yeah, that's a known inconsistency. More background here: |
Most of the spec tests are pretty similar, so I've been porting the tests over. This still requires modding things here and there.