LibWeb: Remove assertions about type of IPC::Transport

These constexpr checks and static assertions are really just
loud FIXME comments, and should be comments instead.
This commit is contained in:
stasoid
2024-12-21 10:03:51 +05:00
committed by Andrew Kaster
parent fe43712e72
commit 2be8052f0a
2 changed files with 12 additions and 18 deletions

View File

@@ -38,8 +38,8 @@ void WorkerAgent::initialize(JS::Realm& realm)
auto worker_socket = MUST(Core::LocalSocket::adopt_fd(worker_socket_file.take_fd()));
MUST(worker_socket->set_blocking(true));
static_assert(IsSame<IPC::Transport, IPC::TransportSocket>, "Handle other IPC::Transport types here");
// TODO: Mach IPC
auto transport = IPC::Transport(move(worker_socket));
m_worker_ipc = make_ref_counted<WebWorkerClient>(move(transport));