Skip to content

Commit 23955ed

Browse files
committed
store result of isNativeError function for validation
1 parent c4aaa5d commit 23955ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

benchmark/util/is-native-error.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ function main({ argument, version, n }) {
2828
const arg = args[argument];
2929

3030
bench.start();
31+
let result;
3132
for (let iteration = 0; iteration < n; iteration++) {
32-
func(arg);
33+
result = func(arg);
3334
}
3435
bench.end(n);
36+
if (typeof result !== 'boolean') throw new Error('unexpected result');
3537
}

0 commit comments

Comments
 (0)