We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc3037 commit fca270dCopy full SHA for fca270d
1 file changed
test/ghsa/GHSA-cp6g-6699-wx9c/repro.js
@@ -89,7 +89,10 @@ describe('GHSA-cp6g-6699-wx9c — require.root symlink bypass', () => {
89
it('rejects directory-level symlink (pnpm/npm-link layout)', () => {
90
tmp = mkdtemp();
91
const root = path.join(tmp, 'root');
92
- fs.mkdirSync(path.join(root, 'node_modules'), { recursive: true });
+ // Two explicit mkdirs instead of {recursive: true} for Node 8 compat
93
+ // (fs.mkdirSync recursive option added in Node 10.12).
94
+ fs.mkdirSync(root);
95
+ fs.mkdirSync(path.join(root, 'node_modules'));
96
97
// Outside package: name "safe", payload writes a sentinel.
98
const outsidePkg = path.join(tmp, 'outside-pkg');
0 commit comments