You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method Object::GetPropertyNames() is not declared const.
The method napi_get_property_names() cannot not modify any member fields as the variables _env and _value are passed by value and result is a local variable. Thus, the function should be declared as const.
This will add the ability to declare a const Object and still get the property names associated with the object.
Activity
src: make `Object::GetPropertyNames()` const
DaAitch commentedon Dec 26, 2018
@AeromXundes agree: PR created
src: make `Object::GetPropertyNames()` const
src: make `Object::GetPropertyNames()` const
src: make `Object::GetPropertyNames()` const
src: make `Object::GetPropertyNames()` const