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 — tools,lib: remove `global` and `Intl` from the list of globals · nodejs/node@a87fa5b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • .eslintrc.yaml
    • internal/per_context
      • primordials.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ rules:
173173
- name: WeakSet
174174
into: Safe
175175
globals:
176-
Intl: false
177176
# Parameters passed to internal modules
178-
global: false
179177
require: false
180178
process: false
181179
exports: false
Collapse file

‎lib/internal/per_context/primordials.js‎

Copy file name to clipboardExpand all lines: lib/internal/per_context/primordials.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function copyPrototype(src, dest, prefix) {
162162
'Reflect',
163163
].forEach((name) => {
164164
// eslint-disable-next-line no-restricted-globals
165-
copyPropsRenamed(global[name], primordials, name);
165+
copyPropsRenamed(globalThis[name], primordials, name);
166166
});
167167

168168
// Create copies of intrinsic objects
@@ -206,7 +206,7 @@ function copyPrototype(src, dest, prefix) {
206206
'WeakSet',
207207
].forEach((name) => {
208208
// eslint-disable-next-line no-restricted-globals
209-
const original = global[name];
209+
const original = globalThis[name];
210210
primordials[name] = original;
211211
copyPropsRenamed(original, primordials, name);
212212
copyPrototype(original.prototype, primordials, `${name}Prototype`);
@@ -219,7 +219,7 @@ function copyPrototype(src, dest, prefix) {
219219
'Promise',
220220
].forEach((name) => {
221221
// eslint-disable-next-line no-restricted-globals
222-
const original = global[name];
222+
const original = globalThis[name];
223223
primordials[name] = original;
224224
copyPropsRenamedBound(original, primordials, name);
225225
copyPrototype(original.prototype, primordials, `${name}Prototype`);

0 commit comments

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