unsafe fn try_serialize<T: Serializable + IDLInterface>(
val: Serializable,
cx: *mut JSContext,
obj: HandleObject,
global: &GlobalScope,
w: *mut JSStructuredCloneWriter,
writer: &mut StructuredDataWriter,
) -> Result<bool, InterfaceDoesNotMatch>