Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mozilla/rhino
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 88e2ebfb153f937ffc25c2268b3142b15ca12f79
Choose a base ref
..
head repository: mozilla/rhino
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2a37c85b4bc9d76e9935bb9f50cee89d0f2278ec
Choose a head ref
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/org/mozilla/javascript/TokenStream.java
5 changes: 4 additions & 1 deletion src/org/mozilla/javascript/TokenStream.java
Original file line number Diff line number Diff line change
@@ -1115,7 +1115,10 @@ final int getToken() throws IOException {
String str = getStringFromBuffer();
this.string = (String) allStrings.intern(str);
return Token.STRING;
} else if (c == '#' && cursor == 1 && peekChar() == '!' && !this.parser.calledByCompileFunction) {
} else if (c == '#'
&& cursor == 1
&& peekChar() == '!'
&& !this.parser.calledByCompileFunction) {
// #! hashbang: only on the first line of a Script, no leading whitespace
skipLine();
return Token.COMMENT;