the constructor name or %NULL
a #GCallback to be called to create an instance of @jsc_class
user data to pass to @callback
destroy notifier for @user_data
the #GType of the constructor return value
a list of #GType<!-- -->s, one for each parameter, or %NULL
a #JSCValue representing the class constructor.
Add a constructor to @jsc_class. If @name is %NULL, the class name will be used. When <function>new</function> is used with the constructor or jsc_value_constructor_call() is called, @callback is invoked receiving the parameters and @user_data as the last parameter. When the constructor object is cleared in the #JSCClass context, @destroy_notify is called with @user_data as parameter.
This function creates the constructor, which needs to be added to an object as a property to be able to use it. Use jsc_context_set_value() to make the constructor available in the global object.
Note that the value returned by @callback is adopted by @jsc_class, and the #GDestroyNotify passed to jsc_context_register_class() is responsible for disposing of it.