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

This commit is contained in:
Lucas Azzola authored and Christopher Chedeau committed 2017-06-09 19:45:39 -07:00
1 parent d00956d51d
commit 8903e5e527
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -51,7 +51,9 @@ function massageAST(ast) {
"source",
"before",
"after",
"trailingComma"
"trailingComma",
"parent",
"prev"
].forEach(name => {
delete newObj[name];
});
+3 -1
View File
@@ -96,7 +96,9 @@ function stripLocation(ast) {
key === "loc" ||
key === "range" ||
key === "raw" ||
key === "comments"
key === "comments" ||
key === "parent" ||
key === "prev"
) {
continue;
}