We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add support for serialization and deserialization of custom objects via Object.assign and Object.create For example:
Object.assign
Object.create
class A { a = 1 } serialize(A, { classes: { A } })
get
const serialized = "(function(args) {var k = args[0].classes;return args[0].assign(Object.create(k.A.prototype), { a: 1 })})(arguments)" function unserialize() { return eval(serialized) } unserialize({ classes: {A: function() {}}, assign: Object.assign })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add support for serialization and deserialization of custom objects via
Object.assign
andObject.create
For example:
get
The text was updated successfully, but these errors were encountered: