Remove duplicated code

This commit is contained in:
Anthony Van de Gejuchte 2017-01-31 23:00:15 +01:00
parent 4bd31607f6
commit 8683fbc1d1

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;
});