diff --git a/benchmarks/asmjs-apps/run.js b/benchmarks/asmjs-apps/run.js index f87e8c0..d623b18 100644 --- a/benchmarks/asmjs-apps/run.js +++ b/benchmarks/asmjs-apps/run.js @@ -19,6 +19,7 @@ var arguments = __ARGV__; function RunBenchmark(file) { var begin = Date.now(); + var printErr = printErr || print; var p = print, perr = printErr; print = function(){}, perr = print; load(file); diff --git a/benchmarks/asmjs-ubench/ubench.js b/benchmarks/asmjs-ubench/ubench.js index f87e8c0..d623b18 100644 --- a/benchmarks/asmjs-ubench/ubench.js +++ b/benchmarks/asmjs-ubench/ubench.js @@ -19,6 +19,7 @@ var arguments = __ARGV__; function RunBenchmark(file) { var begin = Date.now(); + var printErr = printErr || print; var p = print, perr = printErr; print = function(){}, perr = print; load(file);