util: Remove exec, has been deprecated for years
PR-URL: https://github.com/nodejs/node/pull/2530 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
e4e5b13efd
commit
4cf19ad1bb
@ -838,11 +838,6 @@ function hasOwnProperty(obj, prop) {
|
|||||||
|
|
||||||
// Deprecated old stuff.
|
// Deprecated old stuff.
|
||||||
|
|
||||||
exports.exec = internalUtil.deprecate(function() {
|
|
||||||
return require('child_process').exec.apply(this, arguments);
|
|
||||||
}, 'util.exec is deprecated. Use child_process.exec instead.');
|
|
||||||
|
|
||||||
|
|
||||||
exports.print = internalUtil.deprecate(function() {
|
exports.print = internalUtil.deprecate(function() {
|
||||||
for (var i = 0, len = arguments.length; i < len; ++i) {
|
for (var i = 0, len = arguments.length; i < len; ++i) {
|
||||||
process.stdout.write(String(arguments[i]));
|
process.stdout.write(String(arguments[i]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user