Skip to content

Commit

Permalink
Remove TemplateExpressions from LHSE check.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabejohnson committed Jul 1, 2016
1 parent e4982f2 commit 996f5e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/enforester.js
Expand Up @@ -1129,13 +1129,16 @@ export class Enforester {
// $x:expr [ $b:expr ]
this.isBrackets(lookahead) ||
// $x:expr (...)
this.isParens(lookahead) ||
// $x:id `...`
this.isTemplate(lookahead)
this.isParens(lookahead)
))) {
return this.enforestLeftHandSideExpression({ allowCall: true });
}

// $x:id `...`
if(this.term && this.isTemplate(lookahead)) {
return this.enforestTemplateLiteral();
}

// postfix unary
if (this.term && this.isUpdateOperator(lookahead)) {
return this.enforestUpdateExpression();
Expand Down

0 comments on commit 996f5e4

Please sign in to comment.