Skip to content

Commit b6a73c1

Browse files
committed
test: add test case for send command error case
1 parent eea5bb4 commit b6a73c1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Flags: --expose-internals
2+
'use strict';
3+
4+
const common = require('../common');
5+
const inspector = require('internal/util/inspector');
6+
common.skipIfInspectorDisabled();
7+
8+
inspector.sendInspectorCommand(
9+
common.mustCall(() => { throw new Error('test'); }),
10+
common.mustCall()
11+
);

0 commit comments

Comments
 (0)