Fix the 2 promise tests skipped on JavaScriptCore and Hermes in Runtime_tests.cpp
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- cpp, javascript
调研方向
Start with the skip conditions and the two named tests in valdi/test/integration/Runtime_tests.cpp, then run the provided Bazel command repeatedly on macOS JavaScriptCore and the affected engines. Trace the promise polyfill behavior for the race and unhandled rejection cases. Done when neither test is skipped on an engine where it can pass and both pass repeatedly.
由索引模型根据 Issue 内容生成。
描述
Two tests in valdi/test/integration/Runtime_tests.cpp are skipped on some engines because of the promise polyfill:
| Test | Skipped on | Reason in the code |
|---|---|---|
supportsPromiseCallWithPromiseParametersStepByStep |
JavaScriptCore | Racy with the promise polyfill used on Linux JavaScriptCore |
supportsUnhandledRejectionHandler |
JavaScriptCore, Hermes | Doesn't work with the promise polyfill on Linux JavaScriptCore and on Hermes |
The skips check only the engine, so they also apply to JavaScriptCore on macOS, where the Linux polyfill isn't used.
What to do, for each test:
- Check whether it passes on macOS JavaScriptCore. If it does, narrow the skip to the polyfill case.
- Fix the race or the missing unhandled-rejection support in the polyfill, then remove the skip.
How to run
bazel test //valdi:test_integration --test_filter='*supportsPromiseCallWithPromiseParametersStepByStep*:*supportsUnhandledRejectionHandler*' --runs_per_test=20
Done when: neither test is skipped on an engine where it can pass, and both pass repeatedly.
See CONTRIBUTING.md before opening a pull request.
- 主要语言
- C++
- 星标
- 16.4k
- 派生
- 539
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Snapchat/Valdi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
相似的 Issue
-
RTL-SDR: re-enumerating while streaming removes the in-use entry from the device selection dialog可能已有人在做 @dpc00 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
throneproj/Throne#2227 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
deepseek-ai/DeepGEMM-Ascend#49 ·
维护者通常 1 天内回复