Skip to content

Commit 861e584

Browse files
yorkieMylesBorins
authored andcommitted
async_wrap: add a missing case to test-async-wrap-throw-no-init
PR-URL: #8198 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 0b60563 commit 861e584

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/parallel/test-async-wrap-throw-no-init.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ require('../common');
44
const assert = require('assert');
55
const async_wrap = process.binding('async_wrap');
66

7-
87
assert.throws(function() {
98
async_wrap.setupHooks(null);
109
}, /first argument must be an object/);
1110

11+
assert.throws(function() {
12+
async_wrap.setupHooks({});
13+
}, /init callback must be a function/);
14+
1215
assert.throws(function() {
1316
async_wrap.enable();
1417
}, /init callback is not assigned to a function/);

0 commit comments

Comments
 (0)