We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad510d9 commit fe318ddCopy full SHA for fe318dd
lib/punycode.js
@@ -1,5 +1,15 @@
1
'use strict';
2
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
+}
12
+
13
/** Highest positive signed 32-bit float value */
14
const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
15
0 commit comments