mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: add node:
prefix in sys module deprecation warning
PR-URL: https://github.com/nodejs/node/pull/58442 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
d5abfbf582
commit
83052ff9ad
1 changed files with 1 additions and 1 deletions
|
@ -27,5 +27,5 @@
|
|||
// Note to maintainers: Although this module has been deprecated for a while
|
||||
// we do not plan to remove it. See: https://github.com/nodejs/node/pull/35407#issuecomment-700693439
|
||||
module.exports = require('util');
|
||||
process.emitWarning('sys is deprecated. Use util instead.',
|
||||
process.emitWarning('sys is deprecated. Use `node:util` instead.',
|
||||
'DeprecationWarning', 'DEP0025');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue