Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ inline bool Object::Delete(uint32_t index) {
return result;
}

inline Array Object::GetPropertyNames() {
inline Array Object::GetPropertyNames() const {
napi_value result;
napi_status status = napi_get_property_names(_env, _value, &result);
NAPI_THROW_IF_FAILED(_env, status, Array());
Expand Down
2 changes: 1 addition & 1 deletion napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ namespace Napi {
uint32_t index ///< Property / element index
);

Array GetPropertyNames(); ///< Get all property names
Array GetPropertyNames() const; ///< Get all property names

/// Defines a property on the object.
void DefineProperty(
Expand Down