diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/promise/setimmediate/es6-extensions.js | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/promise/setimmediate/es6-extensions.js')
-rw-r--r-- | node_modules/promise/setimmediate/es6-extensions.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/node_modules/promise/setimmediate/es6-extensions.js b/node_modules/promise/setimmediate/es6-extensions.js index 8ab266698..e6d92aa60 100644 --- a/node_modules/promise/setimmediate/es6-extensions.js +++ b/node_modules/promise/setimmediate/es6-extensions.js @@ -16,9 +16,9 @@ var ZERO = valuePromise(0); var EMPTYSTRING = valuePromise(''); function valuePromise(value) { - var p = new Promise(Promise._61); - p._65 = 1; - p._55 = value; + var p = new Promise(Promise._44); + p._83 = 1; + p._18 = 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._65 === 3) { - val = val._55; + while (val._83 === 3) { + val = val._18; } - if (val._65 === 1) return res(i, val._55); - if (val._65 === 2) reject(val._55); + if (val._83 === 1) return res(i, val._18); + if (val._83 === 2) reject(val._18); val.then(function (val) { res(i, val); }, reject); |