Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: use assert.throws() in test-require-json.js
Use assert.throws() instead of try/catch. PR-URL: #28358 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
- Loading branch information