Skip to content

Commit 3e4dbff

Browse files
committed
Disable --frozen-intrinsics
1 parent 5a38fac commit 3e4dbff

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/constants.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,17 @@ const lazyNodeHardenFlags = () =>
355355
? []
356356
: // Harden Node security.
357357
// https://nodejs.org/en/learn/getting-started/security-best-practices
358-
// We have contributed the following patches to our dependencies to make
359-
// Node's --frozen-intrinsics workable.
360-
// √ https://github.com/SBoudrias/Inquirer.js/pull/1683
361-
// √ https://github.com/pnpm/components/pull/23
362-
['--disable-proto', 'throw', '--frozen-intrinsics', '--no-deprecation']
358+
[
359+
'--disable-proto',
360+
'throw',
361+
// We have contributed the following patches to our dependencies to make
362+
// Node's --frozen-intrinsics workable.
363+
// √ https://github.com/SBoudrias/Inquirer.js/pull/1683
364+
// √ https://github.com/pnpm/components/pull/23
365+
// TODO: Investigate why @octokit/rest errors with it enabled.
366+
// '--frozen-intrinsics',
367+
'--no-deprecation'
368+
]
363369

364370
const lazyRootBinPath = () =>
365371
// Lazily access constants.rootPath.

0 commit comments

Comments
 (0)