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