| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 16aa927 commit 0af9bee
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -220,12 +220,16 @@ class AsyncResource { | |||
| 220 | 220 | const ret = this.runInAsyncScope.bind(this, fn); | |
| 221 | 221 | ObjectDefineProperties(ret, { | |
| 222 | 222 | 'length': { | |
| 223 | - enumerable: true, | ||
| 223 | + configurable: true, | ||
| 224 | + enumerable: false, | ||
| 224 | 225 | value: fn.length, | |
| 226 | + writable: false, | ||
| 225 | 227 | }, | |
| 226 | 228 | 'asyncResource': { | |
| 229 | + configurable: true, | ||
| 227 | 230 | enumerable: true, | |
| 228 | 231 | value: this, | |
| 232 | + writable: true, | ||
| 229 | 233 | } | |
| 230 | 234 | }); | |
| 231 | 235 | return ret; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments