fix(html): fix AST_COMPARE on htmlparser2 ASTs (#2084)

master
Lucas Azzola 2017-06-10 12:45:39 +10:00 committed by Christopher Chedeau
parent d00956d51d
commit 8903e5e527
2 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,9 @@ function massageAST(ast) {
"source",
"before",
"after",
"trailingComma"
"trailingComma",
"parent",
"prev"
].forEach(name => {
delete newObj[name];
});

View File

@ -96,7 +96,9 @@ function stripLocation(ast) {
key === "loc" ||
key === "range" ||
key === "raw" ||
key === "comments"
key === "comments" ||
key === "parent" ||
key === "prev"
) {
continue;
}