From 1461c7c5778933514126216fb3ec22d8dfc57feb Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Fri, 7 Sep 2018 22:33:05 +0200 Subject: [PATCH] Fix a lint error --- src/tokencontext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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