Skip to content

Commit

Permalink
Merge branch 'fix-classcastexception' of https://github.com/shelches/…
Browse files Browse the repository at this point in the history
…rhino into fix-classcastexception
  • Loading branch information
Edward Jensen committed Apr 25, 2022
2 parents 3340d98 + bbda56c commit 1309215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/mozilla/javascript/ConsString.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private synchronized String flatten() {
}
}

final String str = (String) next;
final String str = next.toString();
charPos -= str.length();
str.getChars(0, str.length(), chars, charPos);
next = stack.isEmpty() ? null : stack.removeFirst();
Expand Down

0 comments on commit 1309215

Please sign in to comment.