add sourceType property

This commit is contained in:
Sebastian McKenzie 2015-03-16 12:49:38 +11:00
parent ce91f1869b
commit b9ae556f9f

View File

@ -39,6 +39,7 @@ exports.toToken = function (token) {
}; };
exports.toAST = function (ast) { exports.toAST = function (ast) {
ast.sourceType = "module";
traverse(ast, astTransformVisitor); traverse(ast, astTransformVisitor);
}; };