mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
lib: runtime deprecate punycode
PR-URL: https://github.com/nodejs/node/pull/47202 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
74b9cf2ee1
commit
4b08c4c047
3 changed files with 12 additions and 12 deletions
|
@ -1,14 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
const { getOptionValue } = require('internal/options');
|
||||
if (getOptionValue('--pending-deprecation')){
|
||||
process.emitWarning(
|
||||
'The `punycode` module is deprecated. Please use a userland ' +
|
||||
'alternative instead.',
|
||||
'DeprecationWarning',
|
||||
'DEP0040',
|
||||
);
|
||||
}
|
||||
process.emitWarning(
|
||||
'The `punycode` module is deprecated. Please use a userland ' +
|
||||
'alternative instead.',
|
||||
'DeprecationWarning',
|
||||
'DEP0040',
|
||||
);
|
||||
|
||||
/** Highest positive signed 32-bit float value */
|
||||
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue