FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: ensure callback runs in test-vm-sigint · nodejs/node@61542e8 · GitHub

/ node Public

Commit 61542e8

Browse files
authored andcommitted
test: ensure callback runs in test-vm-sigint
PR-URL: #7768 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent e8a6a22 commit 61542e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/parallel/test-vm-sigint.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ process.on('SIGUSR2', common.mustCall(() => {
3333
process.kill(child.pid, 'SIGINT');
3434
}));
3535

36-
child.on('close', function(code, signal) {
36+
child.on('close', common.mustCall((code, signal) => {
3737
assert.strictEqual(signal, null);
3838
assert.strictEqual(code, 0);
39-
});
39+
}));

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL