File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const crypto = require('crypto');
15
15
const { ERR_DEBUGGER_ERROR } = require ( 'internal/errors' ) . codes ;
16
16
const { EventEmitter } = require ( 'events' ) ;
17
17
const http = require ( 'http' ) ;
18
- const URL = require ( 'url' ) ;
18
+ const { URL } = require ( 'internal/ url' ) ;
19
19
20
20
const debuglog = require ( 'internal/util/debuglog' ) . debuglog ( 'inspect' ) ;
21
21
@@ -297,7 +297,8 @@ class Client extends EventEmitter {
297
297
298
298
async _discoverWebsocketPath ( ) {
299
299
const { 0 : { webSocketDebuggerUrl } } = await this . _fetchJSON ( '/json' ) ;
300
- return URL . parse ( webSocketDebuggerUrl ) . path ;
300
+ const { pathname, search } = new URL ( webSocketDebuggerUrl ) ;
301
+ return `${ pathname } ${ search } ` ;
301
302
}
302
303
303
304
_connectWebsocket ( urlPath ) {
You can’t perform that action at this time.
0 commit comments