From ef718247406b3e890f58efb09e690a7c03fbaab9 Mon Sep 17 00:00:00 2001 From: Artur Vieira Date: Thu, 11 May 2017 04:51:05 +0000 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/12289 PR-URL: https://github.com/nodejs/node/pull/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 --- doc/api/errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/errors.md b/doc/api/errors.md index cbe9f2ff250..ebafd5a05fb 100644 --- a/doc/api/errors.md +++ b/doc/api/errors.md @@ -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; ```