Skip to content

Commit

Permalink
Update TokenStream.java
Browse files Browse the repository at this point in the history
plain if
  • Loading branch information
p-bakker authored Nov 5, 2023
1 parent 2a37c85 commit 58c9ca7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/mozilla/javascript/TokenStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,9 @@ final int getToken() throws IOException {
String str = getStringFromBuffer();
this.string = (String) allStrings.intern(str);
return Token.STRING;
} else if (c == '#'
}

if (c == '#'
&& cursor == 1
&& peekChar() == '!'
&& !this.parser.calledByCompileFunction) {
Expand Down

0 comments on commit 58c9ca7

Please sign in to comment.