GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: refactor setupInspector in bootstrap/node.js · nodejs/node@e14abfe

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/bootstrap
    • node.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/bootstrap/node.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@
439439

440440
function setupGlobalConsole() {
441441
const originalConsole = global.console;
442-
const CJSModule = NativeModule.require('internal/modules/cjs/loader');
443442
// Setup Node.js global.console.
444443
const wrappedConsole = NativeModule.require('console');
445444
Object.defineProperty(global, 'console', {
@@ -448,7 +447,7 @@
448447
value: wrappedConsole,
449448
writable: true
450449
});
451-
setupInspector(originalConsole, wrappedConsole, CJSModule);
450+
setupInspector(originalConsole, wrappedConsole);
452451
}
453452

454453
function setupGlobalURL() {
@@ -521,10 +520,11 @@
521520
NativeModule.require('internal/domexception');
522521
}
523522

524-
function setupInspector(originalConsole, wrappedConsole, CJSModule) {
523+
function setupInspector(originalConsole, wrappedConsole) {
525524
if (!process.config.variables.v8_enable_inspector) {
526525
return;
527526
}
527+
const CJSModule = NativeModule.require('internal/modules/cjs/loader');
528528
const { addCommandLineAPI, consoleCall } = process.binding('inspector');
529529
// Setup inspector command line API.
530530
const { makeRequireFunction } =

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.