Truly independent web browser
<!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>