(options, context)
| 11833 | return new TypeError(`ReadableByteStreamController.prototype.${name} can only be used on a ReadableByteStreamController`); |
| 11834 | } |
| 11835 | function convertReaderOptions(options, context) { |
| 11836 | assertDictionary(options, context); |
| 11837 | const mode = options === null || options === void 0 ? void 0 : options.mode; |
| 11838 | return { |
| 11839 | mode: mode === void 0 ? void 0 : convertReadableStreamReaderMode(mode, `${context} has member 'mode' that`) |
| 11840 | }; |
| 11841 | } |
| 11842 | function convertReadableStreamReaderMode(mode, context) { |
| 11843 | mode = `${mode}`; |
| 11844 | if (mode !== "byob") { |
no test coverage detected