Browse files

doc: edit Error.captureStackTrace html comment

Edit to the comment in the stack trace capture, highlighting the use of
the constructorOpt argument in

Fixes: #12289
PR-URL: #12962
Reviewed-By: James M Snell <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Anna Henningsen <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Michael Dawson <>
Reviewed-By: Ruben Bridgewater <>
  • Loading branch information...
arturgvieira authored and addaleax committed May 11, 2017
1 parent 2b54147 commit ef718247406b3e890f58efb09e690a7c03fbaab9
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/
@@ -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;

0 comments on commit ef71824

Please sign in to comment.