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 @@ -3686,7 +3686,7 @@ this API: [`fs.write(fd, string...)`][].
3686
3686
3687
3687
## fs Promises API
3688
3688
3689
- > Stability: 1 - Experimental
3689
+ > Stability: 2 - Stable
3690
3690
3691
3691
The ` fs.promises ` API provides an alternative set of asynchronous file system
3692
3692
methods that return ` Promise ` objects rather than using callbacks. The
Original file line number Diff line number Diff line change @@ -1894,13 +1894,10 @@ Object.defineProperties(fs, {
1894
1894
} ,
1895
1895
promises : {
1896
1896
configurable : true ,
1897
- enumerable : false ,
1897
+ enumerable : true ,
1898
1898
get ( ) {
1899
- if ( promises === null ) {
1899
+ if ( promises === null )
1900
1900
promises = require ( 'internal/fs/promises' ) ;
1901
- process . emitWarning ( 'The fs.promises API is experimental' ,
1902
- 'ExperimentalWarning' ) ;
1903
- }
1904
1901
return promises ;
1905
1902
}
1906
1903
}
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