@@ -324,13 +324,6 @@ function _extend(target, source) { |
|
|
324 |
324 |
return target; |
325 |
325 |
} |
326 |
326 |
|
327 |
|
-// Deprecated old stuff. |
328 |
|
-function error(...args) { |
329 |
|
-for (var i = 0, len = args.length; i < len; ++i) { |
330 |
|
-process.stderr.write(`${args[i]}\n`); |
331 |
|
-} |
332 |
|
-} |
333 |
|
- |
334 |
327 |
function callbackifyOnRejected(reason, cb) { |
335 |
328 |
// `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). |
336 |
329 |
// Because `null` is a special error value in callbacks which means "no error |
@@ -421,10 +414,5 @@ module.exports = exports = { |
|
|
421 |
414 |
promisify, |
422 |
415 |
TextDecoder, |
423 |
416 |
TextEncoder, |
424 |
|
- types, |
425 |
|
- |
426 |
|
-// Deprecated Old Stuff |
427 |
|
-error: deprecate(error, |
428 |
|
-'util.error is deprecated. Use console.error instead.', |
429 |
|
-'DEP0029') |
|
417 |
+ types |
430 |
418 |
}; |