-
Notifications
You must be signed in to change notification settings - Fork 71
Implement Promise Race Without Promise Group #889
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
Implement Promise Race Without Promise Group #889
Conversation
285befa to
145149d
Compare
aapoalas
left a comment
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.
Mostly looks good to me, but we can simplify the Race case a little, and I think we should separate the Race entirely out of Group.
...m/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs
Outdated
Show resolved
Hide resolved
...m/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs
Outdated
Show resolved
Hide resolved
...m/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs
Outdated
Show resolved
Hide resolved
...m/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs
Outdated
Show resolved
Hide resolved
aapoalas
left a comment
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.
Nice, looks excellent! IMO you could still remove the extra HeapMarkAndSweep impl when you update expectations, but aside from that this is now complete as far as I can see.
Great job and thank you <3
15fc83f to
ba69f41
Compare
Thanks! :) Unfortunately, it seems that I broke quite a few tests from the other promise constructor methods, such as I have to check why before merging... |
49ea3e3 to
c46c861
Compare
|
Hey @aapoalas, I fixed the abrupt rejection that I broke, so this should be good to go. Could you review again when you have the time, please? |
aapoalas
left a comment
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.
Hey @aapoalas, I fixed the abrupt rejection that I broke, so this should be good to go.
Good that you got it fixed, nice work!
I had one nitpick regarding the way you handle the rejections, let's fix that and then we can merge this <3
...m/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_constructor.rs
Outdated
Show resolved
Hide resolved
Fixed! :) |
aapoalas
left a comment
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.
LGTM, great job and thank you <3
No description provided.