emscripten-core/emscripten

Fail blocking socket operations loudly

开放

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

 (5 条评论) (1 个反应) (0 位负责人)C++ (3,519 个派生)batch import
good first bughelp wanted

仓库指标

星标
 (27,361 个星标)
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.

贡献者指南