benchmark: don't use template strings
authorEvan Lucas <evanlucas@me.com>
Wed, 4 Feb 2015 08:24:28 +0000 (02:24 -0600)
committerEvan Lucas <evan@btc.com>
Wed, 4 Feb 2015 09:53:22 +0000 (03:53 -0600)
When running benchmark/compare.js, it is typical to run a version of
node that does not support template strings. This provides backwards
compatibility for comparing benchmarks using older versions of node.

PR-URL: https://github.com/iojs/io.js/pull/714
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
benchmark/common.js

index cd75279..c4a5f7e 100644 (file)
@@ -27,7 +27,7 @@ if (module === require.main) {
     });
 
     if (filteredTests.length === 0) {
-      console.error(`${testFilter} is not found in \n ${tests.join('  \n')}`);
+      console.error('%s is not found in \n %j', testFilter, tests);
       return;
     }
     tests = filteredTests;