Add a parseExpression public method (#213)
This commit is contained in:
committed by
Daniel Tschinder
parent
b6b4610cea
commit
898c4a7623
@@ -24,7 +24,7 @@ module.exports = function runFixtureTests(fixturesPath, parseFunction) {
|
||||
|
||||
function save(test, ast) {
|
||||
delete ast.tokens;
|
||||
if (!ast.comments.length) delete ast.comments;
|
||||
if (ast.comments && !ast.comments.length) delete ast.comments;
|
||||
require("fs").writeFileSync(test.expect.loc, JSON.stringify(ast, null, " "));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user