From 8f005c027b6d20b74eb3ce3bc39f1d71dde758eb Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 26 Jan 2011 13:07:39 +0100 Subject: [PATCH] Fix encoding in |fs.readFileSync| calls ("utf-8" -> "utf8") --- benchmark/run | 2 +- test/run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/run b/benchmark/run index 3ba1a3e..d35bc6f 100755 --- a/benchmark/run +++ b/benchmark/run @@ -105,7 +105,7 @@ sys.puts(""); Runner.run(benchmarks, runCount, { readFile: function(file) { - return fs.readFileSync(file, "utf-8"); + return fs.readFileSync(file, "utf8"); }, testStart: function(benchmark, test) { diff --git a/test/run b/test/run index 02f562b..b81044a 100755 --- a/test/run +++ b/test/run @@ -81,7 +81,7 @@ QUnit.done = function(details) { "passes-test.js", "compiler-test.js", ].forEach(function(file) { - eval("with (QUnit) {" + fs.readFileSync(file, "utf-8") + "}"); + eval("with (QUnit) {" + fs.readFileSync(file, "utf8") + "}"); }); QUnit.start();