Skip to content

Commit

Permalink
lib: runtime deprecate punycode
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Mar 21, 2023
1 parent f5eedf4 commit 216b288
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/punycode.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 216b288

Please sign in to comment.