summaryrefslogtreecommitdiff
path: root/benchmark/napi/function_call/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/napi/function_call/index.js')
-rw-r--r--benchmark/napi/function_call/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/napi/function_call/index.js b/benchmark/napi/function_call/index.js
index b63d805fe3..3eebf9c05a 100644
--- a/benchmark/napi/function_call/index.js
+++ b/benchmark/napi/function_call/index.js
@@ -11,8 +11,9 @@ const common = require('../../common.js');
// which is quite common for benchmarks. so in that case, just
// abort quietly.
+let binding;
try {
- var binding = require(`./build/${common.buildType}/binding`);
+ binding = require(`./build/${common.buildType}/binding`);
} catch {
console.error('misc/function_call.js Binding failed to load');
process.exit(0);