Skip to content

Commit f855179

Browse files
committed
domain: eol deprecate process.assert
1 parent 8b8fc53 commit f855179

File tree

4 files changed

+4
-36
lines changed

4 files changed

+4
-36
lines changed

doc/api/deprecations.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2142,14 +2142,17 @@ parameter.
21422142

21432143
<!-- YAML
21442144
changes:
2145+
- version: REPLACEME
2146+
pr-url: https://github.com/nodejs/node/pull/55035
2147+
description: End-of-Life.
21452148
- version: v10.0.0
21462149
pr-url: https://github.com/nodejs/node/pull/18666
21472150
description: Runtime deprecation.
21482151
- version: v0.3.7
21492152
description: Documentation-only deprecation.
21502153
-->
21512154

2152-
Type: Runtime
2155+
Type: End-of-Life
21532156

21542157
`process.assert()` is deprecated. Please use the [`assert`][] module instead.
21552158

lib/internal/bootstrap/node.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,6 @@ ObjectDefineProperty(process, 'allowedNodeEnvironmentFlags', {
265265
configurable: true,
266266
});
267267

268-
// process.assert
269-
process.assert = deprecate(
270-
perThreadSetup.assert,
271-
'process.assert() is deprecated. Please use the `assert` module instead.',
272-
'DEP0100');
273-
274268
// TODO(joyeecheung): this property has not been well-maintained, should we
275269
// deprecate it in favor of a better API?
276270
const { isDebugBuild, hasOpenSSL, hasInspector } = config;

lib/internal/process/per_thread.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ let getValidatedPath; // We need to lazy load it because of the circular depende
5353

5454
const kInternal = Symbol('internal properties');
5555

56-
function assert(x, msg) {
57-
if (!x) throw new ERR_ASSERTION(msg || 'assertion error');
58-
}
5956
const { exitCodes: { kNoFailure } } = internalBinding('errors');
6057

6158
const binding = internalBinding('process_methods');
@@ -428,7 +425,6 @@ const { arch, platform, version } = process;
428425

429426
module.exports = {
430427
toggleTraceCategoryState,
431-
assert,
432428
buildAllowedFlags,
433429
wrapProcessMethods,
434430
hrtime,

test/parallel/test-process-assert.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)