-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Normative: Use onFinally's realm when creating functions in Promise.prototype.finally (fixes #2222) #2233
base: main
Are you sure you want to change the base?
Conversation
…rototype.finally (fixes tc39#2222)
Does this need consensus, and/or does it match what engines already do? My assumption is yes and yes. |
test is in tc39/test262#2910. I don't know about consensus requirement, but would be nice to get feedback from devs? |
Seems best to discuss it in the next plenary. The “has tests” label will be applied when the tests PR is merged, after it has consensus. |
3d0c24c
to
7a79833
Compare
I've added this to the agenda for next month's meeting. |
Thanks for the reminder, I will find some time for this before the next meeting. |
We still want to do this. I just need to refresh my memory on it, thanks again for ping. |
@dminor any update from spidermonkey on this one? |
Changed
Promise.prototype.finally
to useonFinally
's realm when creatingthenFinally
andcatchFinally
,so that embedding uses
onFinally
's realm's global when checking if job's global is fully active.This fixes #2222