mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
This commit is contained in:
parent
a7ba5faaf5
commit
a74b4a062f
30 changed files with 57 additions and 57 deletions
|
@ -98,7 +98,7 @@ async function checkModuleState() {
|
|||
const m = new SourceTextModule('import "foo";');
|
||||
try {
|
||||
await m.link(common.mustCall(() => ({})));
|
||||
} catch (err) {
|
||||
} catch {
|
||||
assert.strictEqual(m.linkingStatus, 'errored');
|
||||
m.instantiate();
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ async function checkLinking() {
|
|||
const erroredModule = new SourceTextModule('import "foo";');
|
||||
try {
|
||||
await erroredModule.link(common.mustCall(() => ({})));
|
||||
} catch (err) {
|
||||
} catch {
|
||||
// ignored
|
||||
} finally {
|
||||
assert.strictEqual(erroredModule.linkingStatus, 'errored');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue