We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b77afc0 commit f1f2e05Copy full SHA for f1f2e05
lib/path.js
@@ -24,6 +24,7 @@
24
const {
25
ArrayPrototypeIncludes,
26
ArrayPrototypeJoin,
27
+ ArrayPrototypePush,
28
ArrayPrototypeSlice,
29
FunctionPrototypeBind,
30
StringPrototypeCharCodeAt,
@@ -511,13 +512,13 @@ const win32 = {
511
512
const arg = args[i];
513
validateString(arg, 'path');
514
if (arg.length > 0) {
- path.push(arg);
515
+ ArrayPrototypePush(path, arg);
516
}
517
518
519
if (path.length === 0)
520
return '.';
-
521
+
522
const firstPart = path[0];
523
let joined = ArrayPrototypeJoin(path, '\\');
524
0 commit comments