| 1828 | } |
| 1829 | |
| 1830 | inline MaybeOrValue<Array> Object::GetPropertyNames() const { |
| 1831 | napi_value result; |
| 1832 | napi_status status = napi_get_property_names(_env, _value, &result); |
| 1833 | NAPI_RETURN_OR_THROW_IF_FAILED(_env, status, Array(_env, result), Array); |
| 1834 | } |
| 1835 | |
| 1836 | inline MaybeOrValue<bool> Object::DefineProperty( |
| 1837 | const PropertyDescriptor& property) const { |