Skip to content

doc: note assert.throws() pitfall

Rodrigo Muino Tomonari requested to merge github/fork/Trott/throw into master

Pull Request check-list

  • Is the commit message formatted according to [CONTRIBUTING.md][0]?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Affected core subsystem(s)

doc assert

Description of change

assert.throws() has a pitfall where you may think you are checking error message text when you are not. Document it.

Merge request reports

Loading