summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-03-11 10:19:47 +0000
committerAnna Henningsen <anna@addaleax.net>2019-04-02 14:20:05 +0200
commit5583d4d73ef750b27c9068ea0f05fae0de9f7766 (patch)
tree6139258d8a6f58609e25ef9a3bbdf25fc2b6df9b /lib
parent82bf240ebad4d19a3c00aa4a80a3738e3d9a83aa (diff)
downloadandroid-node-v8-5583d4d73ef750b27c9068ea0f05fae0de9f7766.tar.gz
android-node-v8-5583d4d73ef750b27c9068ea0f05fae0de9f7766.tar.bz2
android-node-v8-5583d4d73ef750b27c9068ea0f05fae0de9f7766.zip
fs: remove experimental warning for fs.promises
This has been warning for long enough, without any API changes in the last few months. PR-URL: https://github.com/nodejs/node/pull/26581 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/fs.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 206ab1fcfe..b27b7f8916 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -1930,13 +1930,10 @@ Object.defineProperties(fs, {
},
promises: {
configurable: true,
- enumerable: false,
+ enumerable: true,
get() {
- if (promises === null) {
+ if (promises === null)
promises = require('internal/fs/promises');
- process.emitWarning('The fs.promises API is experimental',
- 'ExperimentalWarning');
- }
return promises;
}
}