Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bd99b2d

Browse filesBrowse files
larissayvetteMyles Borins
authored andcommitted
test: checking if error constructor is assert.AssertionError
PR-URL: #9119 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent c94482b commit bd99b2d
Copy full SHA for bd99b2d

File tree

Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-debug-agent.js‎

Copy file name to clipboard
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
'use strict';
22
require('../common');
33
const assert = require('assert');
4+
const debug = require('_debug_agent');
45

5-
assert.throws(() => { require('_debug_agent').start(); },
6-
assert.AssertionError);
6+
assert.throws(
7+
() => { debug.start(); },
8+
function(err) {
9+
return (err instanceof assert.AssertionError &&
10+
err.message === 'Debugger agent running without bindings!');
11+
}
12+
);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.