Skip to content

Commit

Permalink
fixup! benchmark: add validateStream to styleText bench
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Jan 10, 2025
1 parent 23812f5 commit ac685f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/util/style-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function main({ messageType, format, validateStream, n }) {

bench.start();
for (let i = 0; i < n; i++) {
let colored = ''
let colored = '';
try {
colored = util.styleText(format, str, { validateStream });

Check failure on line 35 in benchmark/util/style-text.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

'util' is not defined
assert.ok(colored); // Attempt to avoid dead-code elimination

Check failure on line 36 in benchmark/util/style-text.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

'assert' is not defined
Expand Down

0 comments on commit ac685f8

Please sign in to comment.