Uh oh!
There was an error while loading. Please reload this page.
src: remove const qualifier on Object::GetPropertyNames and Object::InstanceOf - #992
src: remove const qualifier on Object::GetPropertyNames and Object::InstanceOf#992legendecas wants to merge 1 commit into
Conversation
…nstanceOf These operations can calling into JavaScript and result in arbitrary side effects, hence shall not be considered as `const` member functions.
mhdawson
commented
May 6, 2021
@legendecas we might need to consider this breaking, as code may no longer compile... |
mhdawson
commented
May 6, 2021
There has been some discussion as to what const means. Maybe we should discuss in the next team meeting. |
legendecas
commented
May 7, 2021
@mhdawson Yes, this is a breaking change. Apart from the const semantics, do we have any policies on node-addon-api like semver-major changes or breaking changes? |
legendecas
commented
May 10, 2021
Labeled as "do not land" until we concluded with a policy regarding the breaking changes and find a consensus on |
legendecas
commented
Jun 11, 2021
Discussed at today's node-api meeting. This is quite similar to const pointers and pointer to const objects. These functions did not change the |
These operations can call into JavaScript and result in arbitrary
side effects, hence shall not be considered as
constmember functions.E.g. the following examples intercepts the operations by Proxy handlers: