Skip to content

Commit

Permalink
Merge 145aa2b into fbb1077
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat authored Oct 20, 2020
2 parents fbb1077 + 145aa2b commit cad9698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions boa/src/object/internal_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ impl GcObject {
parent.get_field(key.clone())
}
Some(ref desc) => match desc {
PropertyDescriptor::Accessor(_) => todo!(),
PropertyDescriptor::Data(desc) => desc.value(),
// TODO: Add accessors
PropertyDescriptor::Accessor(_) => Value::undefined(),
},
}
}
Expand Down Expand Up @@ -118,7 +119,8 @@ impl GcObject {
let desc = DataDescriptor::new(val, own_desc.attributes()).into();
self.define_own_property(key, desc)
}
PropertyDescriptor::Accessor(_) => todo!(),
// TODO: Add accessors
PropertyDescriptor::Accessor(_) => false,
}
}

Expand Down
3 changes: 2 additions & 1 deletion boa/src/value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ impl Value {
let key = key.into();
match self.get_property(key) {
Some(ref desc) => match desc {
PropertyDescriptor::Accessor(_) => todo!("property accessor descriptors"),
// TODO: Add accessors
PropertyDescriptor::Accessor(_) => Value::undefined(),
PropertyDescriptor::Data(desc) => desc.value(),
},
None => Value::undefined(),
Expand Down

0 comments on commit cad9698

Please sign in to comment.