Merge pull request #9689 from RafaPolit/master

Fixed critical unhandled promise that prevented error catching using API
This commit is contained in:
Brendan Dahl 2018-06-11 15:40:30 -06:00 committed by GitHub
commit 3ac638fad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2457,7 +2457,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
if (this.useRequestAnimationFrame && typeof window !== 'undefined') {
window.requestAnimationFrame(this._nextBound);
} else {
Promise.resolve(undefined).then(this._nextBound);
Promise.resolve().then(this._nextBound).catch(this.callback);
}
},