From ee7df1e3e68a08f8e15c7eddee48cd301baa2539 Mon Sep 17 00:00:00 2001 From: theanarkh Date: Sun, 16 Jun 2024 00:58:54 +0800 Subject: [PATCH] lib: remove the unused code --- 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 20eaaade5f2b54..eee7fa031b6c54 100644 --- a/lib/internal/process/pre_execution.js +++ b/lib/internal/process/pre_execution.js @@ -526,7 +526,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', @@ -563,7 +563,6 @@ function initializePermission() { configurable: false, value: { has, - deny, }, }); } else {