mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibWeb: Ignore MessagePort.start() on already-closed port
This matches other browsers, and fixes an assertion found by Domato.
This commit is contained in:
parent
c11f710628
commit
43d2c920e0
3 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let channel = new MessageChannel();
|
||||
let port = channel.port2;
|
||||
port.close();
|
||||
port.start();
|
||||
println("PASS (didn't crash)");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue