Function javascriptcore_sys::JSObjectMakeConstructor [] [src]

pub unsafe extern "C" fn JSObjectMakeConstructor(
    ctx: JSContextRef,
    jsClass: JSClassRef,
    callAsConstructor: JSObjectCallAsConstructorCallback
) -> JSObjectRef

Convenience method for creating a JavaScript constructor.

Returns a JSObject that is a constructor. The object's prototype will be the default object prototype.

The default object constructor takes no arguments and constructs an object of class jsClass with no private data.