Wrap HopObject array items before building JS Array in HopObject.list().
This commit is contained in:
parent
1b5cbfd822
commit
aa1e10691f
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue