lib: remove unnecessary require
The call to url was not necessary since the `url` module itself was already taking care of this. PR-URL: https://github.com/nodejs/node/pull/20567 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
parent
dc1737881e
commit
7afb73715f
@ -90,10 +90,6 @@
|
||||
setupGlobalURL();
|
||||
}
|
||||
|
||||
// Ensure setURLConstructor() is called before the native
|
||||
// URL::ToObject() method is used.
|
||||
NativeModule.require('internal/url');
|
||||
|
||||
// On OpenBSD process.execPath will be relative unless we
|
||||
// get the full path before process.execPath is used.
|
||||
if (process.platform === 'openbsd') {
|
||||
|
@ -30,6 +30,8 @@ const {
|
||||
ERR_INVALID_ARG_TYPE
|
||||
} = require('internal/errors').codes;
|
||||
|
||||
// This ensures setURLConstructor() is called before the native
|
||||
// URL::ToObject() method is used.
|
||||
const { spliceOne } = require('internal/util');
|
||||
|
||||
// WHATWG URL implementation provided by internal/url
|
||||
|
Loading…
x
Reference in New Issue
Block a user