From 70538e67d97d921985430deede1ce277a56dc59e Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Mon, 14 Jul 2025 01:49:06 +0000 Subject: [PATCH] util: replace process.noDeprecation with getOptionValue for deprecation handling --- lib/internal/util.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/internal/util.js b/lib/internal/util.js index 76b41f9aaf3913..d903233f83a2b5 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -182,8 +182,7 @@ function deprecate(fn, msg, code, useEmitSync, modifyPrototype = true) { ); function deprecated(...args) { - // TODO(joyeecheung): use getOptionValue('--no-deprecation') instead. - if (!process.noDeprecation) { + if (!getOptionValue('--no-deprecation')) { emitDeprecationWarning(); } if (new.target) {