Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: add test case for send command error case
  • Loading branch information
antsmartian committed Dec 31, 2019
commit b6a73c19000ca25a17e039bdcf75a792ebefa063
11 changes: 11 additions & 0 deletions test/sequential/test-inspector-command-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Flags: --expose-internals
'use strict';

const common = require('../common');
const inspector = require('internal/util/inspector');
common.skipIfInspectorDisabled();

inspector.sendInspectorCommand(
common.mustCall(() => { throw new Error('test'); }),
common.mustCall()
);