Add exec tests

This commit is contained in:
Justin Ridgewell
2017-06-04 01:12:42 -04:00
parent b048bff77d
commit 899634d20b
8 changed files with 191 additions and 2 deletions

View File

@@ -97,6 +97,9 @@ export default function ({ types: t }) {
if (path.key == "callee" && (parentPath.isCallExpression() || parentPath.isNewExpression())) {
return false;
}
if (path.key == "argument" && parentPath.isUnaryExpression({ operator: "delete"})) {
return false;
}
return true;
});