Skip to content

Commit ec11fb0

Browse files
authored
Update node_patches.js
1 parent 686a01e commit ec11fb0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

internal/node/node_patches.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ function patcher$1(fs = fs__namespace, roots) {
6262
if (err) {
6363
return cb(err);
6464
}
65-
path__namespace.resolve(args[0]);
65+
path__namespace.resolve(
66+
// node 20.12 tightened the constraints and requires the input to be a string
67+
String(args[0]),
68+
);
6669
if (!stats.isSymbolicLink()) {
6770
return cb(null, stats);
6871
}

0 commit comments

Comments
 (0)