| 1844 | } |
| 1845 | |
| 1846 | inline MaybeOrValue<bool> Object::DefineProperties( |
| 1847 | const std::initializer_list<PropertyDescriptor>& properties) const { |
| 1848 | napi_status status = napi_define_properties( |
| 1849 | _env, |
| 1850 | _value, |
| 1851 | properties.size(), |
| 1852 | reinterpret_cast<const napi_property_descriptor*>(properties.begin())); |
| 1853 | NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, status == napi_ok, bool); |
| 1854 | } |
| 1855 | |
| 1856 | inline MaybeOrValue<bool> Object::DefineProperties( |
| 1857 | const std::vector<PropertyDescriptor>& properties) const { |
no test coverage detected