File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -872,6 +872,9 @@ The [`require.extensions`][] property is deprecated.
872
872
873
873
<!-- YAML
874
874
changes:
875
+ - version: REPLACEME
876
+ pr-url: https://github.com/nodejs/node/pull/47202
877
+ description: Runtime deprecation.
875
878
- version: v16.6.0
876
879
pr-url: https://github.com/nodejs/node/pull/38444
877
880
description: Added support for `--pending-deprecation`.
@@ -880,7 +883,7 @@ changes:
880
883
description: Documentation-only deprecation.
881
884
-->
882
885
883
- Type: Documentation-only (supports [ ` --pending-deprecation ` ] [ ] )
886
+ Type: Runtime
884
887
885
888
The [ ` punycode ` ] [ ] module is deprecated. Please use a userland alternative
886
889
instead.
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
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
- }
3
+ process . emitWarning (
4
+ 'The `punycode` module is deprecated. Please use a userland ' +
5
+ 'alternative instead.' ,
6
+ 'DeprecationWarning' ,
7
+ 'DEP0040' ,
8
+ ) ;
12
9
13
10
/** Highest positive signed 32-bit float value */
14
11
const maxInt = 2147483647 ; // aka. 0x7FFFFFFF or 2^31-1
Original file line number Diff line number Diff line change 1
- node:punycode:52
1
+ node:punycode:49
2
2
throw new RangeError(errors[type]);
3
3
^
4
4
5
5
RangeError: Invalid input
6
- at error (node:punycode:52 :8)
6
+ at error (node:punycode:49 :8)
7
7
at Object.decode (node:punycode:*:*)
8
8
at Object.<anonymous> (*test*message*core_line_numbers.js:*:*)
9
9
You can’t perform that action at this time.
0 commit comments