Commit 51cb0d4
doc: inspector.close undefined in worker threads
In the main thread, `inspector.close` is defined as `process._debugEnd`:
```
> inspector.close
[Function: _debugEnd]
```
It's not defined in worker threads:
```
> const {Worker} = require("worker_threads");
> new Worker("console.log(require(\"inspector\").close)", {eval:true})
undefined
```
(As far as I can tell this is intentional and has existed for quite some
time.)
PR-URL: #43867
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>1 parent c789c0f commit 51cb0d4Copy full SHA for 51cb0d4
File tree
Expand file treeCollapse file tree
1 file changed
+3
-0
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+3
-0
lines changedOpen diff view settings
Collapse file
+3Lines changed: 3 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
| 22 | + |
| 23 | + |
22 | 24 | |
23 | 25 | |
24 | 26 | |
| ||
260 | 262 | |
261 | 263 | |
262 | 264 | |
| 265 | + |
0 commit comments