Add a parseExpression public method (#213)

This commit is contained in:
jeromew
2017-01-27 20:13:02 +01:00
committed by Daniel Tschinder
parent b6b4610cea
commit 898c4a7623
249 changed files with 7484 additions and 2 deletions

View File

@@ -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, " "));
}