Skip to content

Commit 2378ee6

Browse files
committedOct 15, 2019
try fix tests
1 parent a00a664 commit 2378ee6

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed
 

‎src/debuggability.js

+1-17
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,7 @@ var deferUnhandledRejectionCheck;
4646
promises.length = 0;
4747
}
4848

49-
if (util.isNode) {
50-
deferUnhandledRejectionCheck = (function() {
51-
var timers = require("timers");
52-
var timerSetTimeout = timers.setTimeout;
53-
var timer = timerSetTimeout(unhandledRejectionCheck, 1);
54-
timer.unref();
55-
56-
return function(promise) {
57-
promises.push(promise);
58-
if (typeof timer.refresh === "function") {
59-
timer.refresh();
60-
} else {
61-
timerSetTimeout(unhandledRejectionCheck, 1).unref();
62-
}
63-
};
64-
})();
65-
} else if (typeof document === "object" && document.createElement) {
49+
if (typeof document === "object" && document.createElement) {
6650
deferUnhandledRejectionCheck = (function() {
6751
var iframeSetTimeout;
6852

0 commit comments

Comments
 (0)
Please sign in to comment.