-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Act as polyfill #50
Comments
Seems we only extend the global Promise object with |
Any update on this? |
@Zorgatone I also wanted to use those functions in other environments, so I published them as then-denodeify and then-nodeify. |
Oh ok thank you! |
We may want to consider using native promises when available in the near future. We would still need to provide
Promise.prototype.done
and the node.js extensions though.We would have two options:
/lib/core.js
otherwise.We also have a few options when there is no built in promise constructor:
Promise
globally (in addition to exporting it). Effectively making this library a true polyfill but with some extensions.Promise
globally, but only add our special extensions to a copy that inherits from the globally defined Promse.The text was updated successfully, but these errors were encountered: