From d63b17dbe30ecf3afff8d1eb90c7ce071abac9f6 Mon Sep 17 00:00:00 2001 From: RafaPolit Date: Tue, 24 Apr 2018 13:10:00 -0500 Subject: [PATCH] Fixed critical unhandled promise that prevented error catching using API --- src/display/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/api.js b/src/display/api.js index 4f7259c50..c0b6e9dd0 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -2453,7 +2453,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); } },