diff --git a/src/org/ringojs/wrappers/ScriptableList.java b/src/org/ringojs/wrappers/ScriptableList.java index de77bbbc8..afac79a38 100644 --- a/src/org/ringojs/wrappers/ScriptableList.java +++ b/src/org/ringojs/wrappers/ScriptableList.java @@ -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();