| 1834 | } |
| 1835 | |
| 1836 | inline MaybeOrValue<bool> Object::DefineProperty( |
| 1837 | const PropertyDescriptor& property) const { |
| 1838 | napi_status status = napi_define_properties( |
| 1839 | _env, |
| 1840 | _value, |
| 1841 | 1, |
| 1842 | reinterpret_cast<const napi_property_descriptor*>(&property)); |
| 1843 | NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, status == napi_ok, bool); |
| 1844 | } |
| 1845 | |
| 1846 | inline MaybeOrValue<bool> Object::DefineProperties( |
| 1847 | const std::initializer_list<PropertyDescriptor>& properties) const { |
no outgoing calls