Skip to content

doc: note util.isError() @@toStringTag limitations

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/iserror into master

Pull Request check-list

  • Does make -j8 test (UNIX) or vcbuild test nosign (Windows) pass with this change (including linting)?
  • Is the commit message formatted according to CONTRIBUTING.md?
  • If this change fixes a bug (or a performance problem), is a regression test (or a benchmark) included?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Affected core subsystem(s)

doc

Description of change

util.isError() is the only remaining util.is*() method that depends on Object.prototype.toString() behavior. This commit notes the limitations of isError() related to @@toStringTag.

Refs: https://github.com/nodejs/node/pull/2201

Merge request reports

Loading