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 — process: add --pending-deprecation to `process.binding()` · nodejs/node@ceebbfb

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • deprecations.md
  • lib/internal/bootstrap
    • pre_execution.js
  • test/parallel
    • test-err-name-deprecation.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2110,9 +2110,12 @@ changes:
21102110
- version: v10.9.0
21112111
pr-url: https://github.com/nodejs/node/pull/22004
21122112
description: Documentation-only deprecation.
2113+
- version: REPLACEME
2114+
pr-url: https://github.com/nodejs/node/pull/26500
2115+
description: Added support for `--pending-deprecation`.
21132116
-->
21142117
2115-
Type: Documentation-only
2118+
Type: Documentation-only (supports [`--pending-deprecation`][])
21162119
21172120
`process.binding()` is for use by Node.js internal code only.
21182121
Collapse file

‎lib/internal/bootstrap/pre_execution.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/pre_execution.js
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ function initializeDeprecations() {
149149
value: noBrowserGlobals
150150
});
151151
}
152+
153+
if (pendingDeprecation) {
154+
process.binding = deprecate(process.binding,
155+
'process.binding() is deprecated. ' +
156+
'Please use public APIs instead.', 'DEP0111');
157+
}
152158
}
153159

154160
function setupChildProcessIpcChannel() {
Collapse file

‎test/parallel/test-err-name-deprecation.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-err-name-deprecation.js
+9-6Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ const common = require('../common');
33

44
// Flags: --pending-deprecation
55

6-
common.expectWarning(
7-
'DeprecationWarning',
8-
'Directly calling process.binding(\'uv\').errname(<val>) is being ' +
9-
'deprecated. Please make sure to use util.getSystemErrorName() instead.',
10-
'DEP0119'
11-
);
6+
common.expectWarning({
7+
DeprecationWarning: [
8+
['process.binding() is deprecated. Please use public APIs instead.',
9+
'DEP0111'],
10+
['Directly calling process.binding(\'uv\').errname(<val>) is being ' +
11+
'deprecated. Please make sure to use util.getSystemErrorName() instead.',
12+
'DEP0119']
13+
]
14+
});
1215

1316
process.binding('uv').errname(-1);

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.