Skip to content

Commit c4d67b9

Browse files
authored
add matchesGlob placeholder to node:path (#2354)
1 parent 912da14 commit c4d67b9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/node/internal/internal_path.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ const win32 = {
182182
throw new Error('path.win32.parse() is not implemented.');
183183
},
184184

185+
matchesGlob(_path: string, _pattern: string): boolean {
186+
throw new Error('path.win32.matchesGlob() is not implemented.');
187+
},
188+
185189
sep: '\\',
186190
delimiter: ';',
187191
win32: null as Object|null,
@@ -627,6 +631,10 @@ const posix = {
627631
return ret;
628632
},
629633

634+
matchesGlob(_path: string, _pattern: string): boolean {
635+
throw new Error('path.posix.matchesGlob() is not implemented.');
636+
},
637+
630638
sep: '/',
631639
delimiter: ':',
632640
win32: null as Object|null,

src/node/path.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const {
2424
parse,
2525
sep,
2626
delimiter,
27+
matchesGlob,
2728
} = posix;
2829

2930
export {
@@ -42,6 +43,7 @@ export {
4243
delimiter,
4344
posix,
4445
win32,
46+
matchesGlob,
4547
};
4648

4749
export { default } from 'node-internal:internal_path';

0 commit comments

Comments
 (0)