Skip to content

Commit 216b288

Browse files
committed
lib: runtime deprecate punycode
1 parent f5eedf4 commit 216b288

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

lib/punycode.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
'use strict';
22

3-
const { getOptionValue } = require('internal/options');
4-
if (getOptionValue('--pending-deprecation')){
5-
process.emitWarning(
6-
'The `punycode` module is deprecated. Please use a userland ' +
7-
'alternative instead.',
8-
'DeprecationWarning',
9-
'DEP0040',
10-
);
11-
}
3+
process.emitWarning(
4+
'The `punycode` module is deprecated. Please use a userland ' +
5+
'alternative instead.',
6+
'DeprecationWarning',
7+
'DEP0040',
8+
);
129

1310
/** Highest positive signed 32-bit float value */
1411
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1

0 commit comments

Comments
 (0)