if (args[i] instanceof Scriptable && !(args[i] instanceof Box)) {
Scriptable s = (Scriptable)args[i];
Object[] keys = s.getIds();
+
+ // FIXME: need to ensure that this is putGlobally(), but still run traps...
for(int j=0; j<keys.length; j++) ret.put(keys[j].toString(), null, s.get(keys[j].toString(), s));
}
return ret;