Re-add optional chaining delete (#7257)
* Re-add optional chaining delete * Move exec tests next to output tests * Forgot to commit these
This commit is contained in:
@@ -113,6 +113,12 @@ export default function(api, options) {
|
||||
if (path.key == "callee" && parentPath.isCallExpression()) {
|
||||
return false;
|
||||
}
|
||||
if (
|
||||
path.key == "argument" &&
|
||||
parentPath.isUnaryExpression({ operator: "delete" })
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user