mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
module: refactor to use more primordials
PR-URL: https://github.com/nodejs/node/pull/36348 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
committed by
Rich Trott
parent
ff28ab77a9
commit
3604fadacf
@@ -31,6 +31,7 @@ const {
|
||||
ArrayPrototypePush,
|
||||
ArrayPrototypeSlice,
|
||||
ArrayPrototypeSplice,
|
||||
ArrayPrototypeUnshift,
|
||||
Boolean,
|
||||
Error,
|
||||
JSONParse,
|
||||
@@ -1227,8 +1228,8 @@ Module._initPaths = function() {
|
||||
let paths = [path.resolve(prefixDir, 'lib', 'node')];
|
||||
|
||||
if (homeDir) {
|
||||
paths.unshift(path.resolve(homeDir, '.node_libraries'));
|
||||
paths.unshift(path.resolve(homeDir, '.node_modules'));
|
||||
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
|
||||
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_modules'));
|
||||
}
|
||||
|
||||
if (nodePath) {
|
||||
|
||||
Reference in New Issue
Block a user