Skip to content

Commit

Permalink
Fix #4575: Check for the previous token’s existence before comparing …
Browse files Browse the repository at this point in the history
…against it (#4663)
  • Loading branch information
GeoffreyBooth authored Aug 24, 2017
1 parent 3dd4582 commit c81e2d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffeescript/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/lexer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ exports.Lexer = class Lexer
if value is ';'
@seenFor = @seenImport = @seenExport = no
tag = 'TERMINATOR'
else if value is '*' and prev[0] is 'EXPORT'
else if value is '*' and prev?[0] is 'EXPORT'
tag = 'EXPORT_ALL'
else if value in MATH then tag = 'MATH'
else if value in COMPARE then tag = 'COMPARE'
Expand Down

0 comments on commit c81e2d4

Please sign in to comment.