Skip to main content

get_property_recv

Function get_property_recv 

Source
pub fn get_property_recv(
    recv: &Value,
    name: &str,
    receiver: &Value,
) -> Result<Value, String>
Expand description

[[Get]](name, receiver) — 10.1.8. receiver is the object the read STARTED from and is what a getter sees as this; it differs from recv only when the read was forwarded down a prototype chain, which is why Reflect.get(t, k, r) and a Proxy get trap’s third argument both need it. Every ordinary read passes recv itself.