benchmark: 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 12:38:54 -05:00
parent a74b4a062f
commit 5407690bd7
10 changed files with 17 additions and 17 deletions

View File

@@ -11,14 +11,14 @@ let napi;
try {
v8 = require('./build/Release/binding');
} catch (err) {
} catch {
console.error(`${__filename}: V8 Binding failed to load`);
process.exit(0);
}
try {
napi = require('./build/Release/napi_binding');
} catch (err) {
} catch {
console.error(`${__filename}: NAPI-Binding failed to load`);
process.exit(0);
}

View File

@@ -13,7 +13,7 @@ const common = require('../../common.js');
try {
var binding = require('./build/Release/binding');
} catch (er) {
} catch {
console.error('misc/function_call.js Binding failed to load');
process.exit(0);
}
@@ -22,7 +22,7 @@ const cxx = binding.hello;
let napi_binding;
try {
napi_binding = require('./build/Release/napi_binding');
} catch (er) {
} catch {
console.error('misc/function_call/index.js NAPI-Binding failed to load');
process.exit(0);
}