(chunk)
| 4085 | function SetUpTransformStreamDefaultControllerFromTransformer(stream, transformer) { |
| 4086 | const controller = Object.create(TransformStreamDefaultController.prototype); |
| 4087 | let transformAlgorithm = (chunk) => { |
| 4088 | try { |
| 4089 | TransformStreamDefaultControllerEnqueue(controller, chunk); |
| 4090 | return promiseResolvedWith(undefined); |
| 4091 | } |
| 4092 | catch (transformResultE) { |
| 4093 | return promiseRejectedWith(transformResultE); |
| 4094 | } |
| 4095 | }; |
| 4096 | let flushAlgorithm = () => promiseResolvedWith(undefined); |
| 4097 | if (transformer.transform !== undefined) { |
| 4098 | transformAlgorithm = chunk => transformer.transform(chunk, controller); |
nothing calls this directly
no test coverage detected