Skip to content

Commit 39892e5

Browse files
authored
fixup! doc: correct description of error.stack accessor behavior
1 parent c9002a9 commit 39892e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ loop tick.
387387
present on builtin `Error` objects (those for which [`Error.isError`][] returns
388388
true). If `error` is not a builtin error object, then the `error.stack` getter
389389
will always return `undefined`, and the setter will do nothing. This can occur
390-
if `error` is an object that has had its prototype set to `Error.prototype`,
391-
but was not constructed by a builtin `Error` constructor.
390+
if the accessor is manually invoked with a `this` value that is not a builtin
391+
error object, such as a {Proxy}.
392392

393393
## Class: `AssertionError`
394394

0 commit comments

Comments
 (0)