Commit 3a3fea0
authored
Remove try/catch when importing node's worker_threads (#21045)
This seems like excessive error checking. Node has supported
`worker_threads` going back v15 and the error folks will when this
module is missing should be pretty clear/actionable without us adding
this extra info.
Also remove unneeded local variable.1 parent 90696df commit 3a3fea0
File tree
3 files changed
+3
-10
lines changed- src
- test/other/metadce
3 files changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 268 | + | |
276 | 269 | | |
277 | 270 | | |
278 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments