File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ const fs = require('fs');
5
5
const http = require ( 'http' ) ;
6
6
const fixtures = require ( '../common/fixtures' ) ;
7
7
const { spawn } = require ( 'child_process' ) ;
8
- const { parse : parseURL } = require ( 'url' ) ;
9
- const { pathToFileURL } = require ( 'url' ) ;
8
+ const { URL , pathToFileURL } = require ( 'url' ) ;
10
9
const { EventEmitter } = require ( 'events' ) ;
11
10
12
11
const _MAINSCRIPT = fixtures . path ( 'loop.js' ) ;
@@ -417,7 +416,8 @@ class NodeInstance extends EventEmitter {
417
416
const port = await this . portPromise ;
418
417
return http . get ( {
419
418
port,
420
- path : parseURL ( devtoolsUrl ) . path ,
419
+ family : 4 ,
420
+ path : new URL ( devtoolsUrl ) . pathname ,
421
421
headers : {
422
422
'Connection' : 'Upgrade' ,
423
423
'Upgrade' : 'websocket' ,
You can’t perform that action at this time.
0 commit comments