pub fn lookup_value(&self, name: &str, heap: &Heap) -> Option<JSValue> {
        if let Some(value) = self.get_value(name) {
            return Some(value);
        }
        for protoref in self.protochain(heap) {
            if let Some(value) = heap.get(protoref).get_value(name) {
                return Some(value);
            }
        }
        None
    }
/// Check own and all inherited properties for `name` and returns the first found value.
Check own and all inherited properties for `name` and returns the first found value.
Check own and all inherited properties for ` name ` and returns the first found value .
pub fn lookup_value(&self, name: &str, heap: &Heap) -> Option<JSValue> {
        if let Some(value) = self.get_value(name) {
            return Some(value);
        }
        for protoref in self.protochain(heap) {
            if let Some(value) = heap.get(protoref).get_value(name) {
                return Some(value);
            }
        }
        None
    }
pub fn lookup_value ( & self , name : & str , heap : & Heap ) -> Option < JSValue > { if let Some ( value ) = self . get_value ( name ) { return Some ( value ) ; } for protoref in self . protochain ( heap ) { if let Some ( value ) = heap . get ( protoref ) . get_value ( name ) { return Some ( value ) ; } } None }
Check own and all inherited properties for `name` and returns the first found value.
Check own and all inherited properties for ` name ` and returns the first found value .
&self
name
&str
heap
&Heap
&self
name
&str
heap
&Heap