Consider any unary expression

This commit is contained in:
Justin Ridgewell
2017-06-04 12:57:50 -04:00
parent a62cb9281e
commit 6cc2f5dc78

View File

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