Skip to main content

call_proxy_method

Function call_proxy_method 

Source
pub fn call_proxy_method(
    recv: &Value,
    name: &str,
    f: Value,
    args: Vec<Value>,
) -> Result<Value, String>
Expand description

The call half of proxy.m(...) once Get(proxy, "m") has produced the callable f: the method runs with the PROXY as this. Split out so a caller that has already done the Get (ToPrimitive’s OrdinaryToPrimitive) does not read the property a second time through the get trap.