-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods not copied over when deep copying a class #29
Comments
Methods cannot be serialized, so they cannot be "cloned". This would be more of a JS "feature", and it won't happen anytime soon, if ever. |
It would be great if we can document this limitation in the |
This is not something to document on rfdc's side IMHO. It's completely unrealistic to expect a data serialisation library to be able to serialise logic. |
The |
I ran into a bit of an issue today trying to make a deep copy of a class I had. It turns out
rfdc
doesn't copy over class methods, only its attributes.Not sure if this is a limitation in JS or a feature that could be added to the package?
I made a minimal reproduction of the issue here:
The text was updated successfully, but these errors were encountered: