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');
1515const { ERR_DEBUGGER_ERROR } = require ( 'internal/errors' ) . codes ;
1616const { EventEmitter } = require ( 'events' ) ;
1717const http = require ( 'http' ) ;
18- const URL = require ( 'url' ) ;
18+ const { URL } = require ( 'internal/ url' ) ;
1919
2020const debuglog = require ( 'internal/util/debuglog' ) . debuglog ( 'inspect' ) ;
2121
@@ -297,7 +297,8 @@ class Client extends EventEmitter {
297297
298298 async _discoverWebsocketPath ( ) {
299299 const { 0 : { webSocketDebuggerUrl } } = await this . _fetchJSON ( '/json' ) ;
300- return URL . parse ( webSocketDebuggerUrl ) . path ;
300+ const { pathname, search } = new URL ( webSocketDebuggerUrl ) ;
301+ return `${ pathname } ${ search } ` ;
301302 }
302303
303304 _connectWebsocket ( urlPath ) {
You can’t perform that action at this time.
0 commit comments