Skip to main content

lookup

Function lookup 

Source
pub fn lookup(
    object: &Gc<JsObject>,
    name: &str,
) -> Option<(Gc<JsObject>, Property)>
Expand description

Walk the prototype chain from object looking for name.

Returns the object that owns the property along with the property itself. The owner matters for a store: an inherited accessor is invoked on the receiver, while an inherited data property is shadowed by a new own property.