diff options
Diffstat (limited to 'node_modules/promise/domains/es6-extensions.js')
-rw-r--r-- | node_modules/promise/domains/es6-extensions.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/node_modules/promise/domains/es6-extensions.js b/node_modules/promise/domains/es6-extensions.js index 8ab266698..e6d92aa60 100644 --- a/node_modules/promise/domains/es6-extensions.js +++ b/node_modules/promise/domains/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); |