mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
628845b816
`printDeprecationMessage` is used to deprecate modules and execution branches. PR-URL: https://github.com/nodejs/io.js/pull/1822 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
11 lines
295 B
JavaScript
11 lines
295 B
JavaScript
'use strict';
|
|
|
|
const util = require('internal/util');
|
|
|
|
// the sys module was renamed to 'util'.
|
|
// this shim remains to keep old programs working.
|
|
// sys is deprecated and shouldn't be used
|
|
|
|
module.exports = require('util');
|
|
util.printDeprecationMessage('sys is deprecated. Use util instead.');
|