mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
15eaba98a1
The process.emitWarning() API should be used for printing deprecation warning messages rather than directly using the internal/util#printDeprecationMessage PR-URL: https://github.com/nodejs/node/pull/8166 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
10 lines
288 B
JavaScript
10 lines
288 B
JavaScript
'use strict';
|
|
|
|
// 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');
|
|
process.emitWarning('sys is deprecated. Use util instead.',
|
|
'DeprecationWarning');
|