(
&self,
ctx: Ctx<'js>,
controller: ReadableStreamControllerClass<'js>,
)
| 28 | |
| 29 | impl<'js> StartAlgorithm<'js> { |
| 30 | pub(crate) fn call( |
| 31 | &self, |
| 32 | ctx: Ctx<'js>, |
| 33 | controller: ReadableStreamControllerClass<'js>, |
| 34 | ) -> Result<Value<'js>> { |
| 35 | match self { |
| 36 | StartAlgorithm::ReturnUndefined => Ok(Value::new_undefined(ctx.clone())), |
| 37 | StartAlgorithm::Function { |
| 38 | f, |
| 39 | underlying_source, |
| 40 | } => f.call::<_, Value>((This(underlying_source.clone()), controller)), |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | type PullRustFn<'js> = |
no test coverage detected