From 87168dd28c40be17fdfec644bef8ecb3fded116c 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 | 5 +- doc/api/process.md | 19 +++----- lib/internal/bootstrap/node.js | 72 ++-------------------------- test/parallel/test-process-config.js | 3 ++ 4 files changed, 19 insertions(+), 80 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 9dd2f7628d84b0..8faee2fde691f2 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2889,12 +2889,15 @@ Prefer [`message.socket`][] over [`message.connection`][]. -Type: Runtime +Type: End-of-Life The `process.config` property provides access to Node.js compile-time settings. However, the property is mutable and therefore subject to tampering. The ability diff --git a/doc/api/process.md b/doc/api/process.md index ecd53469ca4221..dff97fcfdced22 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -1041,6 +1041,9 @@ This feature is not available in [`Worker`][] threads.