Skip to content

Commit d85e20f

Browse files
committed
Replaced Rhino 1.7.14 deprecated method.
1 parent 934f9cc commit d85e20f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/ringojs/wrappers/ScriptableList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void put(String name, Scriptable start, Object value) {
142142
double d = ScriptRuntime.toNumber(value);
143143
long longVal = ScriptRuntime.toUint32(d);
144144
if (longVal != d) {
145-
String msg = ScriptRuntime.getMessage0("msg.arraylength.bad");
145+
String msg = ScriptRuntime.getMessageById("msg.arraylength.bad");
146146
throw ScriptRuntime.constructError("RangeError", msg);
147147
}
148148
int size = list.size();

0 commit comments

Comments
 (0)