Remove duplicated code (#1456)

[ES6] Remove duplicated code
This commit is contained in:
Anthony Van de Gejuchte
2017-02-24 01:48:13 +01:00
committed by Alex Lam S.L
parent 4bd31607f6
commit 85c1cba760

View File

@@ -687,10 +687,8 @@ function OutputStream(options) {
if (p instanceof AST_Unary)
return true;
// (yield x).foo
if (p instanceof AST_Dot && p.expression === this)
return true;
// (yield x)['foo']
if (p instanceof AST_Sub && p.expression === this)
if (p instanceof AST_PropAccess && p.expression === this)
return true;
});