From 55922d9cb0491368c7bb910f6c016df05367927d Mon Sep 17 00:00:00 2001 From: theanarkh Date: Tue, 18 Jun 2024 01:11:38 +0800 Subject: [PATCH] lib: remove the unused code PR-URL: https://github.com/nodejs/node/pull/53463 Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Marco Ippolito --- lib/internal/process/pre_execution.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/internal/process/pre_execution.js b/lib/internal/process/pre_execution.js index 1328d482433a68..8fad2fe617e4f8 100644 --- a/lib/internal/process/pre_execution.js +++ b/lib/internal/process/pre_execution.js @@ -571,7 +571,7 @@ function initializePermission() { ObjectFreeze(require('path')); process.emitWarning('Permission is an experimental feature', 'ExperimentalWarning'); - const { has, deny } = require('internal/process/permission'); + const { has } = require('internal/process/permission'); const warnFlags = [ '--allow-addons', '--allow-child-process', @@ -608,7 +608,6 @@ function initializePermission() { configurable: false, value: { has, - deny, }, }); } else {