summaryrefslogtreecommitdiff
path: root/lib/os.js
diff options
context:
space:
mode:
authorBrandon Benvie <brandon@bbenvie.com>2012-01-28 23:13:42 -0500
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-30 00:27:07 +0100
commit5403a8ce4cce83a13569b09ee5b2ba3d1ad8c176 (patch)
treefec6c0c58f9e75ebf4b161d8cfc1fb7626f00192 /lib/os.js
parente3c0c86b280854e4ad8db9bd5f6c645ffe9e9966 (diff)
downloadandroid-node-v8-5403a8ce4cce83a13569b09ee5b2ba3d1ad8c176.tar.gz
android-node-v8-5403a8ce4cce83a13569b09ee5b2ba3d1ad8c176.tar.bz2
android-node-v8-5403a8ce4cce83a13569b09ee5b2ba3d1ad8c176.zip
core: add `NativeModule.prototype.deprecate`
Formalize and cleanup handling of deprecated core methods.
Diffstat (limited to 'lib/os.js')
-rw-r--r--lib/os.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/os.js b/lib/os.js
index f226e3ecbf..21a95a1359 100644
--- a/lib/os.js
+++ b/lib/os.js
@@ -38,7 +38,6 @@ exports.platform = function() {
};
exports.getNetworkInterfaces = function() {
- require('util')._deprecationWarning('os',
- 'os.getNetworkInterfaces() is deprecated - use os.networkInterfaces()');
return exports.networkInterfaces();
};
+module.deprecate('getNetworkInterfaces', 'It is now called `os.networkInterfaces`.');