Function js::jsapi::JS_GetOwnPropertyDescriptorById [] [src]

pub unsafe extern "C" fn JS_GetOwnPropertyDescriptorById(
    cx: *mut JSContext,
    obj: HandleObject,
    id: HandleId,
    desc: MutableHandle<PropertyDescriptor>
) -> bool

Get a description of one of obj's own properties. If no such property exists on obj, return true with desc.object() set to null.

Implements: ES6 [[GetOwnProperty]] internal method.