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
I have a configuration object that should only be modified by internal modules, but occasionally needs to be read via external pieces of the process. I think the answer is no, but is it possible to take a reference to an object and flag it as read-only such that the original object is untouched, but any access through the new reference is treated as read-only (while still pointing to the original object)? I'm pretty sure that there is no good way to do this, but I figured it couldn't hurt to ask...
The text was updated successfully, but these errors were encountered:
I have a configuration object that should only be modified by internal modules, but occasionally needs to be read via external pieces of the process. I think the answer is no, but is it possible to take a reference to an object and flag it as read-only such that the original object is untouched, but any access through the new reference is treated as read-only (while still pointing to the original object)? I'm pretty sure that there is no good way to do this, but I figured it couldn't hurt to ask...
The text was updated successfully, but these errors were encountered: