Skip to content

Commit

Permalink
test: remove the legacy url parser function
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 committed Apr 8, 2022
1 parent 44fdf95 commit 785bf84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/common/inspector-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const fs = require('fs');
const http = require('http');
const fixtures = require('../common/fixtures');
const { spawn } = require('child_process');
const { parse: parseURL } = require('url');
const { pathToFileURL } = require('url');
const { EventEmitter } = require('events');

Expand Down Expand Up @@ -418,7 +417,7 @@ class NodeInstance extends EventEmitter {
return http.get({
port,
family: 4,
path: parseURL(devtoolsUrl).path,
path: new URL(devtoolsUrl).path,
headers: {
'Connection': 'Upgrade',
'Upgrade': 'websocket',
Expand Down

0 comments on commit 785bf84

Please sign in to comment.