Skip to content

Commit 30b26b9

Browse files
theoludwigaduh95
authored andcommitted
fs: glob is stable, so should not emit experimental warnings
PR-URL: nodejs#58236 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent a376d10 commit 30b26b9

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

lib/fs.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ const {
8686
const { toPathIfFileURL } = require('internal/url');
8787
const {
8888
customPromisifyArgs: kCustomPromisifyArgsSymbol,
89-
emitExperimentalWarning,
9089
getLazy,
9190
kEmptyObject,
9291
promisify: {
@@ -3186,7 +3185,6 @@ function createWriteStream(path, options) {
31863185
const lazyGlob = getLazy(() => require('internal/fs/glob').Glob);
31873186

31883187
function glob(pattern, options, callback) {
3189-
emitExperimentalWarning('glob');
31903188
if (typeof options === 'function') {
31913189
callback = options;
31923190
options = undefined;
@@ -3209,7 +3207,6 @@ function glob(pattern, options, callback) {
32093207
}
32103208

32113209
function globSync(pattern, options) {
3212-
emitExperimentalWarning('globSync');
32133210
const Glob = lazyGlob();
32143211
return new Glob(pattern, options).globSync();
32153212
}

lib/internal/fs/promises.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ const pathModule = require('path');
9191
const { isAbsolute } = pathModule;
9292
const { toPathIfFileURL } = require('internal/url');
9393
const {
94-
emitExperimentalWarning,
9594
getLazy,
9695
kEmptyObject,
9796
lazyDOMException,
@@ -1260,7 +1259,6 @@ async function* _watch(filename, options = kEmptyObject) {
12601259

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

lib/path.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const {
5454

5555
const {
5656
getLazy,
57-
emitExperimentalWarning,
5857
isWindows,
5958
isMacOS,
6059
} = require('internal/util');
@@ -166,7 +165,6 @@ function _format(sep, pathObject) {
166165
}
167166

168167
function glob(path, pattern, windows) {
169-
emitExperimentalWarning('glob');
170168
validateString(path, 'path');
171169
validateString(pattern, 'pattern');
172170
return lazyMinimatch().minimatch(path, pattern, {

0 commit comments

Comments
 (0)