Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function addBenchmark(suite, benchmark) {
const event = new Benchmark.Event({ type: "add", target: benchmark });
suite.emit(event);
if (!event.cancelled) {
suite.push(benchmark);
}
}