Skip to content

Commit 1461c7c

Browse files
committed
Fix a lint error
1 parent 0c12f63 commit 1461c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokencontext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ tt.star.updateContext = function(prevType) {
139139

140140
tt.name.updateContext = function(prevType) {
141141
let allowed = false
142-
if (this.options.ecmaVersion >= 6 && prevType != tt.dot) {
142+
if (this.options.ecmaVersion >= 6 && prevType !== tt.dot) {
143143
if (this.value === "of" && !this.exprAllowed ||
144144
this.value === "yield" && this.inGeneratorContext())
145145
allowed = true

0 commit comments

Comments
 (0)