emscripten-core/emscripten

Fail blocking socket operations loudly

Open

#16,047 创建于 2022年1月17日

在 GitHub 查看
 (5 评论) (1 反应) (0 负责人)C++ (3,519 fork)batch import
good first bughelp wanted

仓库指标

Star
 (27,361 star)
PR 合并指标
 (平均合并 19天 10小时) (30 天内合并 147 个 PR)

描述

Would it make sense to fail blocking socket operations fail with an error code or a JavaScript exception?

@tiran encountered a TypeError: Cannot read property 'stream' of undefined error when calling accept on a blocking socket that was more confusing than Error: accept call on blocking socket is not supported would have been.

贡献者指南