Skip to content

Commit b9154d3

Browse files
committed
fixup! fs: remove experimental warning for fs.promises
1 parent 6956fa3 commit b9154d3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3699,7 +3699,7 @@ this API: [`fs.write(fd, string...)`][].
36993699

37003700
## fs Promises API
37013701

3702-
> Stability: 1 - Experimental
3702+
> Stability: 2 - Stable
37033703
37043704
The `fs.promises` API provides an alternative set of asynchronous file system
37053705
methods that return `Promise` objects rather than using callbacks. The

test/parallel/test-fs-promises.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ function nextdir() {
4040
return `test${++dirc}`;
4141
}
4242

43-
// fs.promises should not be enumerable as long as it causes a warning to be
44-
// emitted.
45-
assert.strictEqual(Object.keys(fs).includes('promises'), false);
43+
// fs.promises should not enumerable.
44+
assert.strictEqual(Object.keys(fs).includes('promises'), true);
4645

4746
{
4847
access(__filename, 'r')

0 commit comments

Comments
 (0)