Navigation Menu

Skip to content

Commit

Permalink
Fix a lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Sep 7, 2018
1 parent 0c12f63 commit 1461c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tokencontext.js
Expand Up @@ -139,7 +139,7 @@ tt.star.updateContext = function(prevType) {

tt.name.updateContext = function(prevType) {
let allowed = false
if (this.options.ecmaVersion >= 6 && prevType != tt.dot) {
if (this.options.ecmaVersion >= 6 && prevType !== tt.dot) {
if (this.value === "of" && !this.exprAllowed ||
this.value === "yield" && this.inGeneratorContext())
allowed = true
Expand Down

0 comments on commit 1461c7c

Please sign in to comment.