JavaScript Highlighter: Fix potential infinite loop on bad input

This commit is contained in:
Shadowfacts 2020-04-09 22:06:46 -04:00
parent 4c65ff612d
commit aef05153a2
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 0 additions and 2 deletions

View File

@ -225,8 +225,6 @@ class JavaScriptHighlighter {
consumeDotLookup() consumeDotLookup()
} else if char == "?" { } else if char == "?" {
consumeTernaryExpression() consumeTernaryExpression()
} else if expressionEnds.contains(char) {
return
} else { } else {
consume() consume()
} }