From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/promise/lib/es6-extensions.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'node_modules/promise/lib/es6-extensions.js') diff --git a/node_modules/promise/lib/es6-extensions.js b/node_modules/promise/lib/es6-extensions.js index e6d92aa60..5046e2367 100644 --- a/node_modules/promise/lib/es6-extensions.js +++ b/node_modules/promise/lib/es6-extensions.js @@ -16,9 +16,9 @@ var ZERO = valuePromise(0); var EMPTYSTRING = valuePromise(''); function valuePromise(value) { - var p = new Promise(Promise._44); - p._83 = 1; - p._18 = value; + var p = new Promise(Promise._n); + p._i = 1; + p._j = value; return p; } Promise.resolve = function (value) { @@ -55,11 +55,11 @@ Promise.all = function (arr) { function res(i, val) { if (val && (typeof val === 'object' || typeof val === 'function')) { if (val instanceof Promise && val.then === Promise.prototype.then) { - while (val._83 === 3) { - val = val._18; + while (val._i === 3) { + val = val._j; } - if (val._83 === 1) return res(i, val._18); - if (val._83 === 2) reject(val._18); + if (val._i === 1) return res(i, val._j); + if (val._i === 2) reject(val._j); val.then(function (val) { res(i, val); }, reject); -- cgit v1.2.3