messageSafeTypes:Set<string> = new Set(["string","number","boolean","null","undefined",])
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.
string
number
boolean
null
undefined
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
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