From 9fbcb619e1a7459498bea59cc2912e459fe3214f Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 30 Jun 2022 12:18:02 +0200 Subject: [PATCH] process: make process.config read only --- doc/api/deprecations.md | 15 ------ doc/api/process.md | 20 ++++---- lib/internal/bootstrap/node.js | 70 ++-------------------------- test/parallel/test-process-config.js | 10 ++++ 4 files changed, 22 insertions(+), 93 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9dd2f7628d84b0..c5c79ff884fff1 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2885,21 +2885,6 @@ Type: Documentation-only. Prefer [`message.socket`][] over [`message.connection`][]. -### DEP0150: Changing the value of `process.config` - - - -Type: Runtime - -The `process.config` property provides access to Node.js compile-time settings. -However, the property is mutable and therefore subject to tampering. The ability -to change the value will be removed in a future version of Node.js. - ### DEP0151: Main index lookup and extension searching