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');
55const http = require ( 'http' ) ;
66const fixtures = require ( '../common/fixtures' ) ;
77const { spawn } = require ( 'child_process' ) ;
8- const { parse : parseURL } = require ( 'url' ) ;
9- const { pathToFileURL } = require ( 'url' ) ;
8+ const { URL , pathToFileURL } = require ( 'url' ) ;
109const { EventEmitter } = require ( 'events' ) ;
1110
1211const _MAINSCRIPT = fixtures . path ( 'loop.js' ) ;
@@ -417,7 +416,8 @@ class NodeInstance extends EventEmitter {
417416 const port = await this . portPromise ;
418417 return http . get ( {
419418 port,
420- path : parseURL ( devtoolsUrl ) . path ,
419+ family : 4 ,
420+ path : new URL ( devtoolsUrl ) . pathname ,
421421 headers : {
422422 'Connection' : 'Upgrade' ,
423423 'Upgrade' : 'websocket' ,
You can’t perform that action at this time.
0 commit comments