diff options
author | Brandon Benvie <brandon@bbenvie.com> | 2012-01-28 23:13:42 -0500 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-01-30 00:27:07 +0100 |
commit | 5403a8ce4cce83a13569b09ee5b2ba3d1ad8c176 (patch) | |
tree | fec6c0c58f9e75ebf4b161d8cfc1fb7626f00192 /lib/os.js | |
parent | e3c0c86b280854e4ad8db9bd5f6c645ffe9e9966 (diff) | |
download | android-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.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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`.'); |