summaryrefslogtreecommitdiff
path: root/test/parallel/test-debug-agent.js
blob: d65029e5855b268de45bc7778b94f38a6169d375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'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!');
  }
);