-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Since 3.2.0: Promise.then stopped working on old devices #615
Comments
It's a patch for a native |
I'm polyfilling only via Since it highly depends on the used browser, I don't know how to build something to reproduce it. Maybe you have access to some EInk-Reader based on old Android version (like the Tolino Shine 1 - sold in Germany). What I've tested then was: import 'core-js/es';
new Promise(resolve => {
// promise resolves in 2 seconds
setTimeout(resolve, 2000);
}).then(() => {
// this function get's never executed
window.alert('foo');
}); |
Without another global |
Theoretically, it can be caused by recursion in promise, used in the microtask implementation, but the reason could be only in the conflict with another polyfill. I'll add a workaround, could you test it? |
Of course I would test it 👍 |
Ok. I don't know why exactly, but that fixed it 😁 Thanks for your fast fix. When can I expect to download the next version with that fix? |
Done. |
I want to report a bug which is related to the release of version 3.2.0.
It works on 3.1.4 perfectly and I found the piece of code that breaks the application which has to run on Andoird 2.x devices.
What happened:
Promise.then
stopped working. The provided callbacks do not execute at all.How I fixed it:
In the file es.promise.js I commented out lines 278 - 286, which is currently:
Then everything worked again on Adnoird 2.x. Since I don't know what this peace of code was intended to achieve, I didn't upload a pull request myself.
Please find some expert to fix that issue. I would be glad to help by testing whatever changes on the Andoird 2.x devices.
The text was updated successfully, but these errors were encountered: