From 216b2887c8bb3f755044b13c3e26e618ae37bbbe Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Tue, 21 Mar 2023 15:26:12 -0400 Subject: [PATCH] lib: runtime deprecate punycode --- lib/punycode.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/punycode.js b/lib/punycode.js index d99588c7aec8f4..7dfe552a5c9efa 100644 --- a/lib/punycode.js +++ b/lib/punycode.js @@ -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