pub fn consume_body<T: BodyMixin + DomObject>( object: &T, body_type: BodyType, can_gc: CanGc, ) -> Rc<Promise>