From f2381bc7cb120e43bb97ffeccd19dfdc946c8b2c 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 2644e01f0aab2f..27df0a9440a03c 100644 --- a/lib/internal/process/pre_execution.js +++ b/lib/internal/process/pre_execution.js @@ -540,7 +540,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', @@ -577,7 +577,6 @@ function initializePermission() { configurable: false, value: { has, - deny, }, }); } else {