public static void putProperty(Scriptable obj, int index, Object value) { Scriptable base = getBase(obj, index);
public static void putProperty(Scriptable obj, String name, Object value) { Scriptable base = getBase(obj, name);
    public static void putProperty(Scriptable obj, int index, Object value) {        Scriptable base = getBase(obj, index);        if (base == null)            base = obj;        base.put(index, obj, value);    }