This commit is contained in:
Johannes Rieken 2018-04-12 16:15:48 +02:00
parent 0a4bc8d0b1
commit 0854ac3ca1

View file

@ -80,9 +80,9 @@ export class PolyfillPromise<T = any> implements Promise<T> {
},
onRejected && function (err) {
if (!sync) {
onFulfilled(err);
onRejected(err);
} else {
platform.setImmediate(() => onFulfilled(err));
platform.setImmediate(() => onRejected(err));
}
}
));