MsgSafe copy of keyevent.
Messaging-safe, one level copy of obj
Doesn't work for special objects like Events: Object.keys() is too parsimonious.
Messaging-safe, one level copy of obj
Also looks at prototype properties. Works for e.g. Event.
Generated using TypeDoc
Messaging-safe copies of objects. Drops non-primitive properties.
Objects to be passed by messaging API must only comprise of the following, otherwise they're silently dropped. The silent drop is probably a bug. If you include a Symbol() you get a DataCloneError.
objects containing attributes only of the above types
Could just copy all primitive attributes, but then we don't get the interface... If we have to do this again, consider generating automatically from typescript/lib/lib.dom.d.ts