Skip to content

Commit 6710c00

Browse files
authored
fs: glob is stable, so should not emit experimental warnings
PR-URL: #58236 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent f8809ce commit 6710c00

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

lib/fs.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ const {
8484
const { toPathIfFileURL } = require('internal/url');
8585
const {
8686
customPromisifyArgs: kCustomPromisifyArgsSymbol,
87-
emitExperimentalWarning,
8887
getLazy,
8988
kEmptyObject,
9089
promisify: {
@@ -3165,7 +3164,6 @@ function createWriteStream(path, options) {
31653164
const lazyGlob = getLazy(() => require('internal/fs/glob').Glob);
31663165

31673166
function glob(pattern, options, callback) {
3168-
emitExperimentalWarning('glob');
31693167
if (typeof options === 'function') {
31703168
callback = options;
31713169
options = undefined;
@@ -3185,7 +3183,6 @@ function glob(pattern, options, callback) {
31853183
}
31863184

31873185
function globSync(pattern, options) {
3188-
emitExperimentalWarning('globSync');
31893186
const Glob = lazyGlob();
31903187
return new Glob(pattern, options).globSync();
31913188
}

lib/internal/fs/promises.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ const pathModule = require('path');
9393
const { isAbsolute } = pathModule;
9494
const { toPathIfFileURL } = require('internal/url');
9595
const {
96-
emitExperimentalWarning,
9796
getLazy,
9897
kEmptyObject,
9998
lazyDOMException,
@@ -1261,7 +1260,6 @@ async function* _watch(filename, options = kEmptyObject) {
12611260

12621261
const lazyGlob = getLazy(() => require('internal/fs/glob').Glob);
12631262
async function* glob(pattern, options) {
1264-
emitExperimentalWarning('glob');
12651263
const Glob = lazyGlob();
12661264
yield* new Glob(pattern, options).glob();
12671265
}

lib/path.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ const {
5353
} = require('internal/validators');
5454

5555
const {
56-
emitExperimentalWarning,
5756
isWindows,
5857
getLazy,
5958
} = require('internal/util');
@@ -1141,7 +1140,6 @@ const win32 = {
11411140
},
11421141

11431142
matchesGlob(path, pattern) {
1144-
emitExperimentalWarning('glob');
11451143
return lazyMatchGlobPattern()(path, pattern, true);
11461144
},
11471145

@@ -1618,7 +1616,6 @@ const posix = {
16181616
},
16191617

16201618
matchesGlob(path, pattern) {
1621-
emitExperimentalWarning('glob');
16221619
return lazyMatchGlobPattern()(path, pattern, false);
16231620
},
16241621

0 commit comments

Comments
 (0)