From aa1e10691fae8ca12209237c244e7f99235753d6 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 9 Oct 2003 18:17:33 +0000 Subject: [PATCH] Wrap HopObject array items before building JS Array in HopObject.list(). --- src/helma/scripting/rhino/HopObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/HopObject.java b/src/helma/scripting/rhino/HopObject.java index 6cb13913..97fc42b2 100644 --- a/src/helma/scripting/rhino/HopObject.java +++ b/src/helma/scripting/rhino/HopObject.java @@ -368,7 +368,7 @@ public class HopObject extends ScriptableObject implements Wrapper { ArrayList a = new ArrayList(); while ((e != null) && e.hasMoreElements()) { - a.add(e.nextElement()); + a.add(Context.toObject(e.nextElement(), core.global)); } return Context.getCurrentContext().newArray(core.global, a.toArray());