mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user