Skip to content

Commit 512ab1f

Browse files
Kerooshatargos
authored andcommitted
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>
1 parent b5b234d commit 512ab1f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎lib/inspector.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ class Session extends EventEmitter {
3737
connect(){
3838
if(this[connectionSymbol])
3939
thrownewERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
40-
constconnection=
40+
this[connectionSymbol]=
4141
newConnection((message)=>this[onMessageSymbol](message));
42-
if(connection.sessionAttached){
43-
thrownewERR_INSPECTOR_ALREADY_CONNECTED('Another inspector session');
44-
}
45-
this[connectionSymbol]=connection;
4642
}
4743

4844
[onMessageSymbol](message){

0 commit comments

Comments
 (0)