remove legacy generator options

This commit is contained in:
Sebastian McKenzie
2014-10-31 11:38:04 +11:00
parent 6953b6e8b6
commit 8a1ea82e97

View File

@@ -80,6 +80,7 @@ File.prototype.addDeclaration = function (name) {
File.prototype.parse = function (code) {
var self = this;
this.code = code;
code = this.parseShebang(code);
@@ -103,13 +104,7 @@ File.prototype.generate = function () {
var opts = this.opts;
var ast = this.ast;
var printOpts = {};
if (opts.sourceMap) {
printOpts.sourceMapName = opts.sourceMapName;
}
var result = generate(ast, printOpts);
var result = generate(this.code, ast, opts);
if (this.shebang) {
// add back shebang