From 340fc668e4bc294ff1bd0b40c18b3f33ebce78e7 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Thu, 24 Jul 2025 11:28:16 -0300 Subject: [PATCH] lib: do not modify prototype deprecated asyncResource Refs: https://github.com/nodejs/node/issues/58218 --- lib/async_hooks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/async_hooks.js b/lib/async_hooks.js index 7dc7bfab328498..4216ee3f240c48 100644 --- a/lib/async_hooks.js +++ b/lib/async_hooks.js @@ -262,10 +262,10 @@ class AsyncResource { enumerable: true, get: deprecate(function() { return self; - }, 'The asyncResource property on bound functions is deprecated', 'DEP0172'), + }, 'The asyncResource property on bound functions is deprecated', 'DEP0172', false), set: deprecate(function(val) { self = val; - }, 'The asyncResource property on bound functions is deprecated', 'DEP0172'), + }, 'The asyncResource property on bound functions is deprecated', 'DEP0172', false), }, }); return bound;