Skip to content

Since 3.2.0: Promise.then stopped working on old devices #615

Closed
@vikingair

Description

@vikingair

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions