Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 512ab1f

Browse filesBrowse 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
Copy full SHA for 512ab1f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Open diff view settings
Collapse file

‎lib/inspector.js‎

Copy file name to clipboardExpand all lines: lib/inspector.js
+1-5Lines 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
throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
40-
const connection =
40+
this[connectionSymbol] =
4141
new Connection((message) => this[onMessageSymbol](message));
42-
if (connection.sessionAttached) {
43-
throw new ERR_INSPECTOR_ALREADY_CONNECTED('Another inspector session');
44-
}
45-
this[connectionSymbol] = connection;
4642
}
4743

4844
[onMessageSymbol](message) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.