We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b60563 commit 861e584Copy full SHA for 861e584
test/parallel/test-async-wrap-throw-no-init.js
@@ -4,11 +4,14 @@ require('../common');
4
const assert = require('assert');
5
const async_wrap = process.binding('async_wrap');
6
7
-
8
assert.throws(function() {
9
async_wrap.setupHooks(null);
10
}, /first argument must be an object/);
11
+assert.throws(function() {
12
+ async_wrap.setupHooks({});
13
+}, /init callback must be a function/);
14
+
15
16
async_wrap.enable();
17
}, /init callback is not assigned to a function/);
0 commit comments