bytecodealliance / bytecodealliance/ComponentizeJS

More granular features for stubbing

未关闭
#274 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement feature/fetch-event feature/wasi
主要语言
Rust
星标
391
派生
53
平均合并
3 天 5 小时
30 天内合并 PR
1

描述

During a recent PR that patched a bug in feature-based WASI interface stubbing, the point of how to deal with outgoing-handler came up:

https://github.com/bytecodealliance/ComponentizeJS/pull/268#discussion_r2223776655

It *seems* like there are at least two solutions that could improve the ergonomics of stubbing:

- stubbing out `fetch()` itself via generated prelude to delete fetch
- more granular features to enable stubbing

Implementing this and avoiding introducing bugs probably requires a bunch of upfront work:

- Adding tests for all the current features & their usage (making sure existing stub combinations work)
- implementing the prelude changes
- adding & implementing the new granular features

Some of this work may overlap (and possibly resolve) #250

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。