Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compatibility with the JSON extension.
  • Loading branch information
nirvdrum committed Apr 3, 2015
1 parent 861e6c8 commit 98ed266
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/main/java/org/jruby/util/ConvertDouble.java
Expand Up @@ -164,7 +164,12 @@ private boolean strictError() {
}
}

public double parse(ByteList list, boolean strict) {
/**
* Everything runs in 1.9+ mode now, so the `is19` parameter is vestigial.
* However, in order to maintain binary compatibility with extensions we can't
* just change the signature either.
*/
public double parse(ByteList list, boolean strict, boolean is19) {
init(list, strict);

if (skipWhitespace()) return completeCalculation();
Expand Down

0 comments on commit 98ed266

Please sign in to comment.