diff options
author | Jeremy Faivre <jeremy.faivre@gmail.com> | 2014-08-25 19:02:08 +0200 |
---|---|---|
committer | Jeremy Faivre <jeremy.faivre@gmail.com> | 2014-08-25 19:02:08 +0200 |
commit | e3efe9d4ee17efad2583bdb82cb26527b749c67b (patch) | |
tree | 749677392b3c2d0f36df89139caa58a0f29fa23e /lib/Utils.js | |
parent | c6cbcf0326723c5f0013490d1fea489694790775 (diff) | |
download | yamljs-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.js | 2 |
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; } |