ensure files end with a newline
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user