Skip to content

Commit f62d649

Browse files
deokjinkimruyadorno
authored andcommitted
lib: use internal fileURLToPath
For internal usage, `internal/url` should be used. Refs: #49553 PR-URL: #49558 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Raz Luvaton <rluvaton@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
1 parent e515046 commit f62d649

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/test_runner/coverage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const {
2525
const { setupCoverageHooks } = require('internal/util');
2626
const { tmpdir } = require('os');
2727
const { join, resolve } = require('path');
28-
const { fileURLToPath } = require('url');
28+
const { fileURLToPath } = require('internal/url');
2929
const kCoverageFileRegex = /^coverage-(\d+)-(\d{13})-(\d+)\.json$/;
3030
const kIgnoreRegex = /\/\* node:coverage ignore next (?<count>\d+ )?\*\//;
3131
const kLineEndingRegex = /\r?\n$/u;

lib/internal/watch_mode/files_watcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { TIMEOUT_MAX } = require('internal/timers');
1414

1515
const EventEmitter = require('events');
1616
const { watch } = require('fs');
17-
const { fileURLToPath } = require('url');
17+
const { fileURLToPath } = require('internal/url');
1818
const { resolve, dirname } = require('path');
1919
const { setTimeout } = require('timers');
2020

0 commit comments

Comments
 (0)