ensure files end with a newline

This commit is contained in:
Sebastian McKenzie
2014-11-07 12:32:48 +11:00
parent c0e6cda071
commit 346f72be05

View File

@@ -98,6 +98,8 @@ File.prototype.errorWithNode = function (node, msg) {
File.prototype.parse = function (code) {
var self = this;
code = code.trimRight() + "\n";
this.code = code;
code = this.parseShebang(code);