We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dae8ca commit 7bac743Copy full SHA for 7bac743
lib/_debug_agent.js
@@ -48,6 +48,7 @@ function Agent() {
48
49
this.first = true;
50
this.binding = process._debugAPI;
51
+ assert(this.binding, 'Debugger agent running without bindings!');
52
53
var self = this;
54
this.binding.onmessage = function(msg) {
@@ -57,7 +58,6 @@ function Agent() {
57
58
};
59
60
this.clients = [];
- assert(this.binding, 'Debugger agent running without bindings!');
61
}
62
util.inherits(Agent, net.Server);
63
test/parallel/test-debug-agent.js
@@ -0,0 +1,6 @@
1
+'use strict';
2
+require('../common');
3
+const assert = require('assert');
4
+
5
+assert.throws(() => { require('_debug_agent').start(); },
6
+ assert.AssertionError);
0 commit comments