Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d3b80d

Browse filesBrowse files
slagiewkarichardlau
authored andcommitted
lib: do not modify prototype deprecated asyncResource (encore)
Previous attempt has missed one argument (`useEmitSync`), therefore it effectively did not work as intended. This change sets `useEmitSync` to `false` which is equivalent to previous behaviour of `undefined` and sets `modifyPrototype` to `false` as expected. PR-URL: #59518 Refs: #58218 Refs: #59195 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 45906b0 commit 5d3b80d
Copy full SHA for 5d3b80d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/async_hooks.js‎

Copy file name to clipboardExpand all lines: lib/async_hooks.js
+2-2Lines 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
return self;
265-
}, 'The asyncResource property on bound functions is deprecated', 'DEP0172', false),
265+
}, 'The asyncResource property on bound functions is deprecated', 'DEP0172', false, false),
266266
set: deprecate(function(val) {
267267
self = val;
268-
}, 'The asyncResource property on bound functions is deprecated', 'DEP0172', false),
268+
}, 'The asyncResource property on bound functions is deprecated', 'DEP0172', false, false),
269269
},
270270
});
271271
return bound;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.