code: public void setAttributes(int index, int attributes)
      {
          checkNotSealed(null, index);
          findAttributeSlot(null, index, SlotAccess.MODIFY).setAttributes(attributes);
      }
docs: Set the attributes of an indexed property.
  
  @param index the numeric index for the property
  @param attributes the bitset of attributes
  @exception EvaluatorException if the named property is not found
  @see org.mozilla.javascript.Scriptable#has(String, Scriptable)
  @see org.mozilla.javascript.ScriptableObject#READONLY
  @see org.mozilla.javascript.ScriptableObject#DONTENUM
  @see org.mozilla.javascript.ScriptableObject#PERMANENT
  @see org.mozilla.javascript.ScriptableObject#EMPTY