mirror of https://github.com/lukechilds/node.git
Browse Source
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>v7.x
committed by
James M Snell
1 changed files with 8 additions and 2 deletions
@ -1,6 +1,12 @@ |
|||
'use strict'; |
|||
require('../common'); |
|||
const assert = require('assert'); |
|||
const debug = require('_debug_agent'); |
|||
|
|||
assert.throws(() => { require('_debug_agent').start(); }, |
|||
assert.AssertionError); |
|||
assert.throws( |
|||
() => { debug.start(); }, |
|||
function(err) { |
|||
return (err instanceof assert.AssertionError && |
|||
err.message === 'Debugger agent running without bindings!'); |
|||
} |
|||
); |
|||
|
Loading…
Reference in new issue