Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 278d718

Browse filesBrowse files
TrottMylesBorins
authored andcommitted
test: refactor test-handle-wrap-close-abort
* use common.mustCall() to confirm number of uncaught exceptions * var -> const * specify duration of 1ms for setTimeout() and setInterval() PR-URL: #10188 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent f12bab6 commit 278d718
Copy full SHA for 278d718

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33

4-
process.on('uncaughtException', function() { });
4+
process.on('uncaughtException', common.mustCall(function() {}, 2));
55

66
setTimeout(function() {
77
process.nextTick(function() {
8-
var c = setInterval(function() {
8+
const c = setInterval(function() {
99
clearInterval(c);
1010
throw new Error('setInterval');
11-
});
11+
}, 1);
1212
});
1313
setTimeout(function() {
1414
throw new Error('setTimeout');
15-
});
15+
}, 1);
1616
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.