Nivoa
When a procedure returns an instance of a class, the superjson isApplicable doesnt detect it
When a procedure returns an instance of a class, the superjson isApplicable doesnt detect it as that class, but when you return it inside an object or array, it does.
then in superjson:
what happens is that val is never an actual instanceof Test, it is an object with the properties of Test, but not the instance itself. But when I return it as the 2nd procedure,
val.test instanceof Test
evals to true.
is this a bug?10 replies