Commit 07968ac
async_hooks: improve property descriptors in als.bind
The length property should be non enumerable to match behavior of
normal functions.
The asyncResource property is enumerable and therefore it should be
also writable to avoid issues like there:
#30932 (comment)
Both properties should be configurable.
Refs: #34574
PR-URL: #34620
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 45d2f4d commit 07968acCopy full SHA for 07968ac
File tree
Expand file treeCollapse file tree
1 file changed
+5
-1
lines changedOpen diff view settings
Filter options
- lib
Expand file treeCollapse file tree
1 file changed
+5
-1
lines changedOpen diff view settings
Collapse file
+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
217 | 217 | |
218 | 218 | |
219 | 219 | |
220 | | - |
| 220 | + |
| 221 | + |
221 | 222 | |
| 223 | + |
222 | 224 | |
223 | 225 | |
| 226 | + |
224 | 227 | |
225 | 228 | |
| 229 | + |
226 | 230 | |
227 | 231 | |
228 | 232 | |
|
0 commit comments