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 10ccce306..11d7f3154 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._37 = null;
- Promise._87 = null;
+ Promise._47 = null;
+ Promise._71 = null;
}
exports.enable = enable;
@@ -24,27 +24,27 @@ function enable(options) {
var id = 0;
var displayId = 0;
var rejections = {};
- Promise._37 = function (promise) {
+ Promise._47 = function (promise) {
if (
- promise._65 === 2 && // IS REJECTED
- rejections[promise._51]
+ promise._83 === 2 && // IS REJECTED
+ rejections[promise._56]
) {
- if (rejections[promise._51].logged) {
- onHandled(promise._51);
+ if (rejections[promise._56].logged) {
+ onHandled(promise._56);
} else {
- clearTimeout(rejections[promise._51].timeout);
+ clearTimeout(rejections[promise._56].timeout);
}
- delete rejections[promise._51];
+ delete rejections[promise._56];
}
};
- Promise._87 = function (promise, err) {
- if (promise._40 === 0) { // not yet handled
- promise._51 = id++;
- rejections[promise._51] = {
+ Promise._71 = function (promise, err) {
+ if (promise._75 === 0) { // not yet handled
+ promise._56 = id++;
+ rejections[promise._56] = {
displayId: null,
error: err,
timeout: setTimeout(
- onUnhandled.bind(null, promise._51),
+ onUnhandled.bind(null, promise._56),
// For reference errors and type errors, this almost always
// means the programmer made a mistake, so log them after just
// 100ms