These interfaces are exposed on *, meaning it should work for workers and our newly added shadow realm global object by being stored on the universal global scope mixin.
10 lines
423 B
HTML
10 lines
423 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
for (const QueuingStrategy of [CountQueuingStrategy, ByteLengthQueuingStrategy]) {
|
|
const size1 = (new QueuingStrategy({ highWaterMark: 5 })).size;
|
|
const size2 = (new QueuingStrategy({ highWaterMark: 10 })).size;
|
|
println(`${QueuingStrategy.name} | size1 === size2 -> ${size1 === size2}`);
|
|
}
|
|
})
|
|
</script>
|