-
Notifications
You must be signed in to change notification settings - Fork 595
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
Use native polyfill on Chrome and Node.js v0.12 #111
Comments
And not has the static method |
No they don't have it (at least Chromium 41 and Node.js v0.12.2) |
I mean that the native |
Firefox 37 doesn't have it either... |
#99 fixed it , but not have merged . |
Definitely a better checker, let's see if it got merged :-)
|
Chrome 45.0.2428.0 Canary Such method seems like suits better:
|
There are still some serious bugs in the v8 promise implementation. Some timing and extra side effects. So we are luckily that the current check still fails. Hopefully they fix the other issues before they fix the toString |
Could you give an examples of v8 bugs? |
It doesn't handle inheritance correctly And resolve isn't correct. Which results in observable ordering differences https://code.google.com/p/v8/issues/detail?id=4162&q=Promise&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Area%20Stars |
For some reason I can't find the inheritance issue I reported... Strange I have clear memory of it being responded to as well.. |
I think it would be better to check to be 'thenable' like below. typeof Promise === 'function' && typeof new Promise(function() {}).then === 'function' |
but the promise implementations that don't match ^^ have bugs still. Why loosen the constraint, and introduce bugs... |
I see the point about the couple of bugs in Chrome's implementation. However, they may well fix the |
On v8 based Javascript engines, the check for using the native Polyfill implementations fails because the check
return
[object Object]
instead of the expected[object Promise]
, that only happens to be on Firefox. I think this check should be less strict or use other condition so v8 native Promises can be used.The text was updated successfully, but these errors were encountered: