bad-strategies.any.html
Details
- Test
/streams/writable-streams/bad-strategies.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | Writable stream: throwing strategy.size getter |
| PASS | reject any non-function value for strategy.size |
| PASS | Writable stream: throwing strategy.highWaterMark getter |
| FAIL | Writable stream: invalid strategy.highWaterMark assert_throws_js: construction should throw a RangeError for -1 function "() => {
new WritableStream({}, {
size() {
return 1;
},
highWaterMark
});
}" … |
| PASS | Writable stream: throwing strategy.size method |
| FAIL | Writable stream: invalid strategy.size return value assert_equals: write must reject with a RangeError for NaN expected "RangeError" but got "TypeError" |
| PASS | Writable stream: invalid size beats invalid highWaterMark |