summaryrefslogtreecommitdiff
path: root/lib/inspector.js
diff options
context:
space:
mode:
authorKeroosha <mr.dead.toast@gmail.com>2019-05-26 21:30:10 +0300
committerMichaƫl Zasso <targos@protonmail.com>2019-05-31 08:46:53 +0200
commit512ab1fddfd596d11ff175a1b551d341ff7fed32 (patch)
tree49827c184209c77bfced3cb62f8ee795f0aba114 /lib/inspector.js
parentb5b234deff631a8da7dcd8953231ce781553a49e (diff)
downloadandroid-node-v8-512ab1fddfd596d11ff175a1b551d341ff7fed32.tar.gz
android-node-v8-512ab1fddfd596d11ff175a1b551d341ff7fed32.tar.bz2
android-node-v8-512ab1fddfd596d11ff175a1b551d341ff7fed32.zip
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>
Diffstat (limited to 'lib/inspector.js')
-rw-r--r--lib/inspector.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/inspector.js b/lib/inspector.js
index 33c48125bb..4bec628b7d 100644
--- a/lib/inspector.js
+++ b/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) {