doc: note assert.throws() pitfall
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.