We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e59efd commit 7658f4cCopy full SHA for 7658f4c
1 file changed
benchmark/misc/function_call/index.js
@@ -6,7 +6,16 @@
6
var assert = require('assert');
7
var common = require('../../common.js');
8
9
-var binding = require('./build/Release/binding');
+// this fails when we try to open with a different version of node,
10
+// which is quite common for benchmarks. so in that case, just
11
+// abort quietly.
12
+
13
+try {
14
+ var binding = require('./build/Release/binding');
15
+} catch (er) {
16
+ console.error('misc/function_call.js Binding failed to load');
17
+ process.exit(0);
18
+}
19
var cxx = binding.hello;
20
21
var c = 0;
0 commit comments