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: add `process` to internal module wrapper · nodejs/node@738b0a1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal
    • bootstrap_node.js
  • test/parallel
    • test-repl-let-process.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
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
};
635635

636636
NativeModule.wrapper = [
637-
'(function (exports, require, module, internalBinding) {',
637+
'(function (exports, require, module, internalBinding, process) {',
638638
'\n});'
639639
];
640640

@@ -650,7 +650,7 @@
650650
lineOffset: 0,
651651
displayErrors: true
652652
});
653-
fn(this.exports, NativeModule.require, this, internalBinding);
653+
fn(this.exports, NativeModule.require, this, internalBinding, process);
654654

655655
this.loaded = true;
656656
} finally {
Collapse file

‎test/parallel/test-repl-let-process.js‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
const common = require('../common');
3+
const repl = require('repl');
4+
5+
common.globalCheck = false;
6+
7+
// Regression test for https://github.com/nodejs/node/issues/6802
8+
const input = new common.ArrayStream();
9+
repl.start({ input, output: process.stdout, useGlobal: true });
10+
input.run(['let process']);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.