--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/CAAc0PEUD2p%2Bj_TKs%2BRB%2Br_W6W1k_F8%3DXgMq6a6XDs8wFfCf-3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/CAAc0PEXCrzKQ-iO1o6XyBNdVF-JNt0TmG-Je5g%2B%3Df5LTssU_Uw%40mail.gmail.com.
Hi,
Scala classes cannot be transferred directly because of the prototype chain, indeed.
Cheers,
Sébastien
You cannot expect to structure-clone Scala classes.Hi,You still need a serialization-like library, but which creates JSON-like objects (structured-cloneable) instead of string/binary data. That's all.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/09301232-b8cb-4756-8d8f-979d5c631f0c%40googlegroups.com.
If no existing pickling framework supports serializing to structurally cloneable objects, you will need your own (or a fork of an existing one).Hi,A Scala class is any class that is not a JavaScript class. A JavaScript class is anything extending js.Any. So a Scala class is anything that does *not* extend js.Any.