Skip to content

Commit

Permalink
doc: edit Error.captureStackTrace html comment
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
arturgvieira authored and MylesBorins committed Jul 17, 2017
1 parent 253c5aa commit d4edc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function MyError() {

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

Expand Down

0 comments on commit d4edc82

Please sign in to comment.