diff --git a/lib/6to5/file.js b/lib/6to5/file.js index 17ecaaf143..0da0505506 100644 --- a/lib/6to5/file.js +++ b/lib/6to5/file.js @@ -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);