Wrap HopObject array items before building JS Array in HopObject.list().

This commit is contained in:
hns 2003-10-09 18:17:33 +00:00
parent 1b5cbfd822
commit aa1e10691f

View file

@ -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());