Commit 7124624
doc: improve example for Error.captureStackTrace()
Change the `MyError` example so that instances of `MyError`are
`instanceof Error` and also native errors when checked with
`util.types.isNativeError()`.
Co-authored-by: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #46886
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 0b2ba44 commit 7124624Copy full SHA for 7124624
File tree
Expand file treeCollapse file tree
1 file changed
+19
-6
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+19
-6
lines changedOpen diff view settings
Collapse file
+19-6Lines changed: 19 additions & 6 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
232 | 232 | |
233 | 233 | |
234 | 234 | |
235 | | - |
236 | | - |
| 235 | + |
| 236 | + |
237 | 237 | |
238 | 238 | |
239 | | - |
240 | | - |
241 | | - |
242 | | - |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
243 | 256 | |
244 | 257 | |
245 | 258 | |
|
0 commit comments