]> git.pld-linux.org Git - packages/nodejs.git/blobdiff - nodejs-lib64path.patch
up to 14.17.4 (fixes CVE-2021-22930)
[packages/nodejs.git] / nodejs-lib64path.patch
index f2dbc57a40d0e67ca929faf9d30a559abf36c22c..1b348a4e0f77c0f1cb3c6a9a8d60154f154e9bf1 100644 (file)
@@ -8,4 +8,4 @@
 +  let paths = ["/usr/lib64/node", "/usr/lib/node", "/usr/lib/node_modules", path.resolve(prefixDir, 'lib', 'node')];
  
    if (homeDir) {
-     paths.unshift(path.resolve(homeDir, '.node_libraries'));
+     ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
This page took 0.029867 seconds and 4 git commands to generate.