Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: use internal.url instead of url #49649

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/switches/is_main_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ rawMethods.resetStdioForTesting = function() {
// Needed by the module loader and generally needed everywhere.
require('fs');
require('util');
require('url'); // eslint-disable-line no-restricted-modules
require('internal/url');

require('internal/modules/cjs/loader');
require('internal/modules/esm/utils');
Expand Down
7 changes: 1 addition & 6 deletions test/parallel/test-bootstrap-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ const expectedModules = new Set([
'NativeModule internal/process/pre_execution',
]);

if (common.isMainThread) {
[
'NativeModule internal/idna',
'NativeModule url',
].forEach(expectedModules.add.bind(expectedModules));
} else {
if (!common.isMainThread) {
[
'NativeModule diagnostics_channel',
'NativeModule internal/abort_controller',
Expand Down
Loading