code: public void defineProperty(String propertyName, Object value,
                                 int attributes)
      {
          checkNotSealed(propertyName, 0);
          put(propertyName, this, value);
          setAttributes(propertyName, attributes);
      }
docs: Define a JavaScript property.
  
  Creates the property with an initial value and sets its attributes.
  
  @param propertyName the name of the property to define.
  @param value the initial value of the property
  @param attributes the attributes of the JavaScript property
  @see org.mozilla.javascript.Scriptable#put(String, Scriptable, Object)