This commit is contained in:
parent
2bb6dff00a
commit
b78fc9b4d0
@ -50,7 +50,8 @@ export function Binary(node: Object, parent: Object): boolean {
|
||||
if (
|
||||
((t.isCallExpression(parent) || t.isNewExpression(parent)) && parent.callee === node) ||
|
||||
t.isUnaryLike(parent) ||
|
||||
(t.isMemberExpression(parent) && parent.object === node)
|
||||
(t.isMemberExpression(parent) && parent.object === node) ||
|
||||
t.isAwaitExpression(parent)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ async function asdf() {
|
||||
true ? (await 1) : (await 2);
|
||||
await (1 ? 2 : 3);
|
||||
await (await 1);
|
||||
await (a || b);
|
||||
}
|
||||
|
||||
async function a(b) {
|
||||
|
||||
@ -5,6 +5,7 @@ async function asdf() {
|
||||
true ? await 1 : await 2;
|
||||
await (1 ? 2 : 3);
|
||||
await await 1;
|
||||
await (a || b);
|
||||
}
|
||||
|
||||
async function a(b) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user