inspector: removing checking of non existent field in lib/inspector.js
Seems like sessionAttached doesn't exist and no more assigned anywhere PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
ff66e08bce
commit
c91a90be73
@ -37,12 +37,8 @@ class Session extends EventEmitter {
|
|||||||
connect() {
|
connect() {
|
||||||
if (this[connectionSymbol])
|
if (this[connectionSymbol])
|
||||||
throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
|
throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
|
||||||
const connection =
|
this[connectionSymbol] =
|
||||||
new Connection((message) => this[onMessageSymbol](message));
|
new Connection((message) => this[onMessageSymbol](message));
|
||||||
if (connection.sessionAttached) {
|
|
||||||
throw new ERR_INSPECTOR_ALREADY_CONNECTED('Another inspector session');
|
|
||||||
}
|
|
||||||
this[connectionSymbol] = connection;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[onMessageSymbol](message) {
|
[onMessageSymbol](message) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user