Function script::dom::bindings::conversions::get_property

source ยท
pub unsafe fn get_property<T>(
    cx: *mut JSContext,
    object: HandleObject<'_>,
    name: &str,
    option: T::Config,
) -> Result<Option<T>, Error>
Expand description

Get a property from a JS object, and convert it to a Rust value.