From d85e20f0e558fb3df2cd4c90421f5a66077e8a23 Mon Sep 17 00:00:00 2001 From: Philipp Naderer-Puiu Date: Wed, 12 Jan 2022 16:27:41 +0100 Subject: [PATCH] Replaced Rhino 1.7.14 deprecated method. --- src/org/ringojs/wrappers/ScriptableList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();