Skip to content

Commit c6911f0

Browse files
committed
lib: do not modify prototype deprecated asyncResource
Refs: #58218 PR-URL: #59195 Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent f748457 commit c6911f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/async_hooks.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ class AsyncResource {
262262
enumerable: true,
263263
get: deprecate(function(){
264264
returnself;
265-
},'The asyncResource property on bound functions is deprecated','DEP0172'),
265+
},'The asyncResource property on bound functions is deprecated','DEP0172',false),
266266
set: deprecate(function(val){
267267
self=val;
268-
},'The asyncResource property on bound functions is deprecated','DEP0172'),
268+
},'The asyncResource property on bound functions is deprecated','DEP0172',false),
269269
},
270270
});
271271
returnbound;

0 commit comments

Comments
 (0)