Skip to content
Permalink
Browse files

inspector: removing checking of non existent field in lib/inspector.js

Seems like sessionAttached doesn't exist and no more assigned anywhere

PR-URL: #27919
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information...
Keroosha authored and targos committed May 26, 2019
1 parent b5b234d commit 512ab1fddfd596d11ff175a1b551d341ff7fed32
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/inspector.js
@@ -37,12 +37,8 @@ class Session extends EventEmitter {
connect() {
if (this[connectionSymbol])
throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
const connection =
this[connectionSymbol] =
new Connection((message) => this[onMessageSymbol](message));
if (connection.sessionAttached) {
throw new ERR_INSPECTOR_ALREADY_CONNECTED('Another inspector session');
}
this[connectionSymbol] = connection;
}

[onMessageSymbol](message) {

0 comments on commit 512ab1f

Please sign in to comment.
You can’t perform that action at this time.