docs: 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);
      }