ladybird/Tests/LibWeb/Text/input/WebSocket/WebSocket-gc.html
2025-03-20 11:50:49 +01:00

22 lines
488 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest((done) => {
{
const ws = new WebSocket('wss://websocket-echo.app.ladybird.org');
ws.onopen = () => {
};
ws.onmessage = () => {
};
ws.onerror = () => {
};
}
setTimeout(() => {
internals.gc();
println("PASS! (Didn't crash)");
done();
}, 0);
});
</script>