-
Notifications
You must be signed in to change notification settings - Fork 594
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
update polyfill with better native ES6 Promise test #99
Conversation
|
||
var nativeES6PromiseSupported = | ||
P && | ||
// Some of these methods are missing from Firefox/Chrome experimental implementations |
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.
i am unsure if we actually support those old/intermediate experimental version?
yes but this is a chrome bug, but it is fixed in canary and should be available in stable soon: As such, I don't believe we need this PR. As the existing check should cover these additional cases, and the buggy version of chrome without |
Why this condition |
You are right, but with current versions of both Chrome and Node.js (v0.12.2, latest stable) is not working (and the v8 update cycle of Node.js is not so fast as the one of Chrome), and also the checking mechanism of this pull-reques is more robust. I think this pull-request definitely needs to be merged. |
Seems to me |
|
Why clossing this without merge? The current behaviour don't use native Promises on Node.js or Io.js. |
#99 (comment)
What this means? It only talk about Chrome, not Node.js... It's true both
are based on v8, but Node.js and Io.js will probably not update it to the
current version until at least 1 more year...
|
This doesn't seem correct, see: nodejs/node#1639 as such I believe iojs isn't nearly that far behind. |
But Node.js is... |
then those users can continue to use a fully functional polyfil, that is compliant (and significantly faster) |
For example? The only one fully compliant seems to be this one... I don't know why Node.js users need to use a polyfill having native ones... We are using this in production grade products... |
It has also come to my attention that v8 promises still have some bugs. (Recently discovered) So the strictness here is guarding us from those issues. |
Why this condition !P.cast? |
not works in Chrome