You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's left unspecified what context (i.e. this value) onFulfilled and onRejected are called in. Should we specify? I say yes.
I think the obvious choice is undefined (which in sloppy mode becomes the global object), i.e. simply call the function as you normally would.
This prevents the antipattern of using this as a zeroth argument from creeping into implementations, which we currently allow and creates noninteroperable code.
The text was updated successfully, but these errors were encountered:
It's left unspecified what context (i.e.
this
value)onFulfilled
andonRejected
are called in. Should we specify? I say yes.I think the obvious choice is
undefined
(which in sloppy mode becomes the global object), i.e. simply call the function as you normally would.This prevents the antipattern of using
this
as a zeroth argument from creeping into implementations, which we currently allow and creates noninteroperable code.The text was updated successfully, but these errors were encountered: