Support for instances of classes
nicojs opened this issue · comments
Nico Jansen commented
I am working on an implementation for supporting instances of classes. For example:
class Person {
constructor(name, parent) {
this.name = name;
this.parent = parent;
}
}
serialize(new Person('foo', new Person('bar', null));
// => 'new Person("foo", new Person("bar", null))'
Would you guys be interested in this kind of functionality?
Nico Jansen commented
If anyone needs this functionality: I've created surrial. It is a similar library, but with class instance support