fix(napi): return self in Property#with_property_attributes
This commit is contained in:
parent
f1f9402a44
commit
8c9295f6f0
1 changed files with 2 additions and 1 deletions
|
@ -74,8 +74,9 @@ impl<'env> Property<'env> {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn with_property_attributes(mut self, attributes: PropertyAttributes) {
|
||||
pub fn with_property_attributes(mut self, attributes: PropertyAttributes) -> Self {
|
||||
self.raw_descriptor.attributes = attributes.into();
|
||||
self
|
||||
}
|
||||
|
||||
pub(crate) fn raw(&self) -> sys::napi_property_descriptor {
|
||||
|
|
Loading…
Reference in a new issue