Both endpoints are erroring:
The first one returns a stringified object: [object Object]
And the second one returns {"name":"TypeError","message":"Attempted to assign to readonly property."}
What is the feature you are proposing to solve the problem?
I think converting classes and objects using a getter to a serializeable object is pretty doable by using the spread syntax to copy over the object after the handler.
What is the problem this feature would solve?
Take this example:
Both endpoints are erroring: The first one returns a stringified object:
[object Object]
And the second one returns{"name":"TypeError","message":"Attempted to assign to readonly property."}
What is the feature you are proposing to solve the problem?
I think converting classes and objects using a getter to a serializeable object is pretty doable by using the spread syntax to copy over the object after the handler.
What alternatives have you considered?
No response