Function js::jsapi::JS_New [] [src]

pub unsafe extern "C" fn JS_New(
    cx: *mut JSContext,
    ctor: HandleObject,
    args: *const HandleValueArray
) -> *mut JSObject

Invoke a constructor, like the JS expression new ctor(...args). Returns the new object, or null on error.