Function js::jsapi::CloneFunctionObject1
[−]
[src]
pub unsafe extern "C" fn CloneFunctionObject1(
cx: *mut JSContext,
funobj: HandleObject,
scopeChain: *mut AutoObjectVector
) -> *mut JSObject
As above, but providing an explicit scope chain. scopeChain must not include the global object on it; that's implicit. It needs to contain the other objects that should end up on the clone's scope chain.