Function js::jsapi::CloneFunctionObject [] [src]

pub unsafe extern "C" fn CloneFunctionObject(
    cx: *mut JSContext,
    funobj: HandleObject
) -> *mut JSObject

Clone a top-level function into cx's global. This function will dynamically fail if funobj was lexically nested inside some other function.