Prepares data
to be sent over a MessagePort by ensuring that all data is
of a type that can be sent and that all transferrables are push
ed to
xfer
.
Data to serialize
Destination array for transferrables
The data in serialized format
Generated using TypeDoc
Javascript will throw errors if I do a simple defined check, so all of this crap is to ensure that doesn't happen. It would be nice to put this in a function, but then JS would throw the error. So, all of this typed out crap is actually necessary.