pub(crate) fn convert_chunk_to_vec( cx: JSContext, chunk: HandleValue<'_>, can_gc: CanGc, ) -> Result<Vec<u8>, Error>