We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c796d commit 74438d4Copy full SHA for 74438d4
1 file changed
src/builtins/bundle-loader.js
@@ -73,9 +73,11 @@ function LazyPromise(executor) {
73
}
74
75
LazyPromise.prototype.then = function (onSuccess, onError) {
76
- return this.promise || (this.promise = new Promise(this.executor).then(onSuccess, onError));
+ if (this.promise === null) this.promise = new Promise(this.executor)
77
+ return this.promise.then(onSuccess, onError)
78
};
79
80
LazyPromise.prototype.catch = function (onError) {
- return this.promise || (this.promise = new Promise(this.executor).catch(onError));
81
82
+ return this.promise.catch(onError)
83
0 commit comments