doc: fix cross_realm_transform documentation

Signed-off-by: Jason Tsai <git@pews.dev>
This commit is contained in:
Jason Tsai 2025-05-26 22:57:21 +09:00
parent 9933c66e95
commit b05a3c39b8
No known key found for this signature in database

View file

@ -459,8 +459,8 @@ pub(crate) struct ManagedMessagePort {
/// Whether the port has been closed by script in this global, /// Whether the port has been closed by script in this global,
/// so it can be removed. /// so it can be removed.
explicitly_closed: bool, explicitly_closed: bool,
/// Handler for a transfered transform stream. /// The handler for `message` or `messageerror` used in the cross realm transform,
/// A message port can be used to transfer either a readable or a writable stream. /// if any was setup with this port.
cross_realm_transform: Option<CrossRealmTransform>, cross_realm_transform: Option<CrossRealmTransform>,
} }