Skip to content

Commit ef71824

Browse files
vieiraarturgaddaleax
authored andcommitted
doc: edit Error.captureStackTrace html comment
Edit to the comment in the stack trace capture, highlighting the use of the constructorOpt argument in errors.md Fixes: #12289 PR-URL: #12962 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 2b54147 commit ef71824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function MyError() {
238238

239239
// Without passing MyError to captureStackTrace, the MyError
240240
// frame would show up in the .stack property. By passing
241-
// the constructor, we omit that frame and all frames above it.
241+
// the constructor, we omit that frame, and retain all frames below it.
242242
new MyError().stack;
243243
```
244244

0 commit comments

Comments
 (0)