Closed
Description
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:
nativeThen = NativePromise.prototype.then;
// wrap native Promise#then for native async functions
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
var that = this;
return new PromiseConstructor(function (resolve, reject) {
nativeThen.call(that, resolve, reject);
}).then(onFulfilled, onRejected);
});
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.