Please sign in to comment.
assert: ensure .rejects() disallows sync throws
This updates `assert.rejects()` to disallow any errors that are thrown synchronously from the given function. Previously, throwing an error would cause the same behavior as returning a rejected Promise. Fixes: #19646 PR-URL: #19650 Reviewed-By: James M Snell <email@example.com> Reviewed-By: Ruben Bridgewater <firstname.lastname@example.org>
- Loading branch information...
Showing with 18 additions and 2 deletions.