undefined error(optional any e);
(
ctx: Ctx<'js>,
controller: This<OwnedBorrowMut<'js, Self>>,
e: Opt<Value<'js>>,
)
| 1749 | // undefined error(optional any e); |
| 1750 | fn error( |
| 1751 | ctx: Ctx<'js>, |
| 1752 | controller: This<OwnedBorrowMut<'js, Self>>, |
| 1753 | e: Opt<Value<'js>>, |
| 1754 | ) -> Result<()> { |
| 1755 | let objects = ReadableStreamObjects::from_byte_controller(controller.0).refresh_reader(); |
| 1756 | |
| 1757 | // Perform ! ReadableByteStreamControllerError(this, e). |
| 1758 | Self::readable_byte_stream_controller_error(objects, e.0.unwrap_or_undefined(&ctx))?; |
| 1759 | Ok(()) |
| 1760 | } |
| 1761 | } |
| 1762 | |
| 1763 | impl<'js> ReadableStreamController<'js> for ReadableByteStreamControllerOwned<'js> { |
| 1764 | type Class = ReadableByteStreamControllerClass<'js>; |
nothing calls this directly
no test coverage detected