mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
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.
11 lines
423 B
HTML
11 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>
|