(rawUnderlyingSink = {}, rawStrategy = {})
| 12119 | } |
| 12120 | class WritableStream2 { |
| 12121 | constructor(rawUnderlyingSink = {}, rawStrategy = {}) { |
| 12122 | if (rawUnderlyingSink === void 0) { |
| 12123 | rawUnderlyingSink = null; |
| 12124 | } else { |
| 12125 | assertObject(rawUnderlyingSink, "First parameter"); |
| 12126 | } |
| 12127 | const strategy = convertQueuingStrategy(rawStrategy, "Second parameter"); |
| 12128 | const underlyingSink = convertUnderlyingSink(rawUnderlyingSink, "First parameter"); |
| 12129 | InitializeWritableStream(this); |
| 12130 | const type2 = underlyingSink.type; |
| 12131 | if (type2 !== void 0) { |
| 12132 | throw new RangeError("Invalid type is specified"); |
| 12133 | } |
| 12134 | const sizeAlgorithm = ExtractSizeAlgorithm(strategy); |
| 12135 | const highWaterMark = ExtractHighWaterMark(strategy, 1); |
| 12136 | SetUpWritableStreamDefaultControllerFromUnderlyingSink(this, underlyingSink, highWaterMark, sizeAlgorithm); |
| 12137 | } |
| 12138 | /** |
| 12139 | * Returns whether or not the writable stream is locked to a writer. |
| 12140 | */ |
nothing calls this directly
no test coverage detected