diff --git a/src/tokencontext.js b/src/tokencontext.js index 6395dd829..6a89c7f9b 100644 --- a/src/tokencontext.js +++ b/src/tokencontext.js @@ -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