doc: fix document of Error.captureStackTrace
After executing the below code, the first line of output is Error: myObject.message
.
const myObject = {};
myObject.message = 'myObject.message';
myObject.toString = () => 'myObject.toString';
Error.captureStackTrace(myObject);
console.log(myObject.stack);
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc, errors