Roadmap for stabilization of vm modules
未关闭
还没有人认领这个 Issue。
esm
experimental
help wanted
loaders
never-stale
vm
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
According to @SimenB, here are the issues that should probably be taken care of before we unflag and mark vm modules as stable:
-
vm.Script'simportModuleDynamicallyshould get a reference to thecontextused to run it (#35714) - https://github.com/nodejs/node/issues/43899
- https://github.com/nodejs/node/issues/31234
- VM ESM with dynamic imports resolves promises before linking is complete (#33216)
- https://github.com/nodejs/node/issues/60242
- https://github.com/nodejs/node/issues/35848
- https://github.com/nodejs/node/issues/31234
- https://github.com/nodejs/node/issues/31658
- SourceTextModule memory leak (#33439)
- Segmentation fault with
import()instead of callingimportModuleDynamically(#35889) - importModuleDynamically for vm module is cached (#36351)
- https://github.com/nodejs/node/issues/50113
- https://github.com/nodejs/node/issues/59118
- https://github.com/nodejs/node/issues/59656
- https://github.com/nodejs/node/issues/43663
- Change API of
module.lnk((specifier) => module)tomodule.link(specifiers, modules)so that it has fewer C++ -> JS calls and can be reused to implementrequire(esm). - Source phase import support.
Tracking issue in Jest: https://github.com/jestjs/jest/issues/9430
/cc @devsnek
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看尚未勾选的关联 issue,尤其是 #35714、#43899、#31234、#33216、#60242 以及 source phase import 支持。https://github.com/jestjs/jest/issues/9430 上的 Jest 跟踪 issue 提供了更多背景信息。当剩余的稳定性阻碍都得到解决,并且可以移除 vm modules 的 flag、将其标记为 stable 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 活跃
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100