File tree 3 files changed +5
-9
lines changed
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -3679,7 +3679,7 @@ this API: [`fs.write(fd, string...)`][].
3679
3679
3680
3680
## fs Promises API
3681
3681
3682
- > Stability: 1 - Experimental
3682
+ > Stability: 2 - Stable
3683
3683
3684
3684
The ` fs.promises ` API provides an alternative set of asynchronous file system
3685
3685
methods that return ` Promise ` objects rather than using callbacks. The
Original file line number Diff line number Diff line change @@ -1839,13 +1839,10 @@ Object.defineProperties(fs, {
1839
1839
} ,
1840
1840
promises : {
1841
1841
configurable : true ,
1842
- enumerable : false ,
1842
+ enumerable : true ,
1843
1843
get ( ) {
1844
- if ( promises === null ) {
1844
+ if ( promises === null )
1845
1845
promises = require ( 'internal/fs/promises' ) ;
1846
- process . emitWarning ( 'The fs.promises API is experimental' ,
1847
- 'ExperimentalWarning' ) ;
1848
- }
1849
1846
return promises ;
1850
1847
}
1851
1848
}
Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ function nextdir() {
40
40
return `test${ ++ dirc } ` ;
41
41
}
42
42
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 ) ;
46
45
47
46
{
48
47
access ( __filename , 'r' )
You can’t perform that action at this time.
0 commit comments