From b993192f8ede21c7cdbbe726727fd0dc6d784db3 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Sat, 5 May 2018 22:43:58 +0700 Subject: [PATCH] fix microtasks in WebOS, see #396 --- packages/core-js/internals/microtask.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-js/internals/microtask.js b/packages/core-js/internals/microtask.js index 9b36b950ea6e..24b34801b6e4 100644 --- a/packages/core-js/internals/microtask.js +++ b/packages/core-js/internals/microtask.js @@ -41,7 +41,7 @@ module.exports = function () { }; // environments with maybe non-completely correct, but existent Promise } else if (Promise && Promise.resolve) { - var promise = Promise.resolve(); + var promise = Promise.resolve(undefined); notify = function () { promise.then(flush); };