The Wayback Machine - https://web.archive.org/web/20220509112010/https://github.com/nodejs/node/commit/deb3cf49c7
Skip to content
Permalink
Browse files
test: remove the legacy url parser function
PR-URL: #42656
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
cola119 authored and targos committed Apr 28, 2022
1 parent be44b1f commit deb3cf49c74b637905244a50f8d9ebe7b5c5cb94
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/common/inspector-helper.js
@@ -5,8 +5,7 @@ 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 { URL, pathToFileURL } = require('url');
const { EventEmitter } = require('events');

const _MAINSCRIPT = fixtures.path('loop.js');
@@ -418,7 +417,7 @@ class NodeInstance extends EventEmitter {
return http.get({
port,
family: 4,
path: parseURL(devtoolsUrl).path,
path: new URL(devtoolsUrl).pathname,
headers: {
'Connection': 'Upgrade',
'Upgrade': 'websocket',

0 comments on commit deb3cf4

Please sign in to comment.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.