Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: improve example for Error.captureStackTrace()
Change the `MyError` example so that instances of `MyError`are `instanceof Error` and also native errors when checked with `util.types.isNativeError()`. Co-authored-by: Ruben Bridgewater <[email protected]> PR-URL: #46886 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
- Loading branch information