aboutsummaryrefslogtreecommitdiff
path: root/node_modules/promise/lib/rejection-tracking.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/promise/lib/rejection-tracking.js
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/promise/lib/rejection-tracking.js')
-rw-r--r--node_modules/promise/lib/rejection-tracking.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/node_modules/promise/lib/rejection-tracking.js b/node_modules/promise/lib/rejection-tracking.js
index 11d7f3154..56e4bd669 100644
--- a/node_modules/promise/lib/rejection-tracking.js
+++ b/node_modules/promise/lib/rejection-tracking.js
@@ -12,8 +12,8 @@ var enabled = false;
exports.disable = disable;
function disable() {
enabled = false;
- Promise._47 = null;
- Promise._71 = null;
+ Promise._l = null;
+ Promise._m = null;
}
exports.enable = enable;
@@ -24,27 +24,27 @@ function enable(options) {
var id = 0;
var displayId = 0;
var rejections = {};
- Promise._47 = function (promise) {
+ Promise._l = function (promise) {
if (
- promise._83 === 2 && // IS REJECTED
- rejections[promise._56]
+ promise._i === 2 && // IS REJECTED
+ rejections[promise._o]
) {
- if (rejections[promise._56].logged) {
- onHandled(promise._56);
+ if (rejections[promise._o].logged) {
+ onHandled(promise._o);
} else {
- clearTimeout(rejections[promise._56].timeout);
+ clearTimeout(rejections[promise._o].timeout);
}
- delete rejections[promise._56];
+ delete rejections[promise._o];
}
};
- Promise._71 = function (promise, err) {
- if (promise._75 === 0) { // not yet handled
- promise._56 = id++;
- rejections[promise._56] = {
+ Promise._m = function (promise, err) {
+ if (promise._h === 0) { // not yet handled
+ promise._o = id++;
+ rejections[promise._o] = {
displayId: null,
error: err,
timeout: setTimeout(
- onUnhandled.bind(null, promise._56),
+ onUnhandled.bind(null, promise._o),
// For reference errors and type errors, this almost always
// means the programmer made a mistake, so log them after just
// 100ms