aboutsummaryrefslogtreecommitdiff
path: root/node_modules/promise/lib/rejection-tracking.js
diff options
context:
space:
mode:
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 088a0deaa..10ccce306 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._10 = null;
- Promise._97 = null;
+ Promise._37 = null;
+ Promise._87 = null;
}
exports.enable = enable;
@@ -24,27 +24,27 @@ function enable(options) {
var id = 0;
var displayId = 0;
var rejections = {};
- Promise._10 = function (promise) {
+ Promise._37 = function (promise) {
if (
- promise._81 === 2 && // IS REJECTED
- rejections[promise._72]
+ promise._65 === 2 && // IS REJECTED
+ rejections[promise._51]
) {
- if (rejections[promise._72].logged) {
- onHandled(promise._72);
+ if (rejections[promise._51].logged) {
+ onHandled(promise._51);
} else {
- clearTimeout(rejections[promise._72].timeout);
+ clearTimeout(rejections[promise._51].timeout);
}
- delete rejections[promise._72];
+ delete rejections[promise._51];
}
};
- Promise._97 = function (promise, err) {
- if (promise._45 === 0) { // not yet handled
- promise._72 = id++;
- rejections[promise._72] = {
+ Promise._87 = function (promise, err) {
+ if (promise._40 === 0) { // not yet handled
+ promise._51 = id++;
+ rejections[promise._51] = {
displayId: null,
error: err,
timeout: setTimeout(
- onUnhandled.bind(null, promise._72),
+ onUnhandled.bind(null, promise._51),
// For reference errors and type errors, this almost always
// means the programmer made a mistake, so log them after just
// 100ms