test: refactor common.expectsError
A combination of try catch and common.expectsError is not necessary as the latter already does everything on its own. Backport-PR-URL: https://github.com/nodejs/node/pull/19230 PR-URL: https://github.com/nodejs/node/pull/17703 Reviewed-By:Timothy Gu <timothygu99@gmail.com> Reviewed-By:
James M Snell <jasnell@gmail.com>
parent
24aeca7d
Please register or sign in to comment