mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +00:00

PR-URL: https://github.com/nodejs/node/pull/9119 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const debug = require('_debug_agent');
|
|
|
|
assert.throws(
|
|
() => { debug.start(); },
|
|
function(err) {
|
|
return (err instanceof assert.AssertionError &&
|
|
err.message === 'Debugger agent running without bindings!');
|
|
}
|
|
);
|