Skip to content

Commit

Permalink
Replaced Rhino 1.7.14 deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
botic committed Jan 12, 2022
1 parent 934f9cc commit d85e20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/ringojs/wrappers/ScriptableList.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void put(String name, Scriptable start, Object value) {
double d = ScriptRuntime.toNumber(value);
long longVal = ScriptRuntime.toUint32(d);
if (longVal != d) {
String msg = ScriptRuntime.getMessage0("msg.arraylength.bad");
String msg = ScriptRuntime.getMessageById("msg.arraylength.bad");
throw ScriptRuntime.constructError("RangeError", msg);
}
int size = list.size();
Expand Down

0 comments on commit d85e20f

Please sign in to comment.