From cd535c13037fa8d07739ae113302042985ec7b3d 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 Ref: nodejs#12289 --- 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 cbe9f2ff250726..ebafd5a05fba54 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; ```