docs: public static void defineProperty(Scriptable destination,
                                        String propertyName, Object value,
                                        int attributes)
      {
          if (!(destination instanceof ScriptableObject)) {
              destination.put(propertyName, destination, value);
              return;
          }
          ScriptableObject so = (ScriptableObject)destination;
          so.defineProperty(propertyName, value, attributes);
      }