Skip to content

Truly independent web browser

499 B
Raw Blame
<!DOCTYPE html>
<script src="../include.js"></script>
<script>
    asyncTest((done) => {
        {
            const ws = new WebSocket(`ws://localhost:${internals.getEchoServerPort()}/`);

            ws.onopen = () => {
            };
            ws.onmessage = () => {
            };
            ws.onerror = () => {
            };
        }

        setTimeout(() => {
            internals.gc();
            println("PASS! (Didn't crash)");
            done();
        }, 0);
    });
</script>