summaryrefslogtreecommitdiff
path: root/lib/Utils.js
diff options
context:
space:
mode:
authorJeremy Faivre <jeremy.faivre@gmail.com>2014-08-25 19:02:08 +0200
committerJeremy Faivre <jeremy.faivre@gmail.com>2014-08-25 19:02:08 +0200
commite3efe9d4ee17efad2583bdb82cb26527b749c67b (patch)
tree749677392b3c2d0f36df89139caa58a0f29fa23e /lib/Utils.js
parentc6cbcf0326723c5f0013490d1fea489694790775 (diff)
downloadyamljs-e3efe9d4ee17efad2583bdb82cb26527b749c67b.tar.gz
Add most of the test cases and fix bugs making some test fail.
Diffstat (limited to 'lib/Utils.js')
-rw-r--r--lib/Utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Utils.js b/lib/Utils.js
index 8d81f06..4f1f3da 100644
--- a/lib/Utils.js
+++ b/lib/Utils.js
@@ -270,7 +270,7 @@ Utils = (function() {
} else {
data = fs.readFileSync(path);
if (data != null) {
- return '' + data;
+ return String(data);
}
return null;
}