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:
cjihrig 2018-11-04 10:25:02 -05:00
parent a7ba5faaf5
commit a74b4a062f
No known key found for this signature in database
GPG key ID: 7434390BDBE9B9C5
30 changed files with 57 additions and 57 deletions

View file

@ -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');