Deprecation proposal for `Module['ctx']`

未关闭
#28,081 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, wasm

调研方向

Read CONTRIBUTING.md’s “Deprecating settings and features” process, then inspect the Module['ctx'] assignments in libwebgl.js, libhtml5_webgl.js, and Browser.createContext in libbrowser.js. Begin with a global search for public repository usage; completion requires following the deprecation checklist through warnings, the waiting period, and removal, subject to the project deciding to delay or abort.

由索引模型根据 Issue 内容生成。

描述

deprecation

Tracking issue for the deprecation and removal of Module['ctx']

Module['ctx'] was an undocumented legacy property populated by WebGL
context activation (libwebgl.js, libhtml5_webgl.js) and main-canvas
context creation (Browser.createContext in libbrowser.js). Because
GL.makeContextCurrent unconditionally assigned to the quoted
Module['ctx'] property, Closure Compiler could not dead-strip it,
adding a few bytes to every WebGL build.

The process for deprecating and removing features from emscripten is laid out
in https://github.com/emscripten-core/emscripten/blob/main/CONTRIBUTING.md#deprecating-settings-and-features.

At any point in the process we may decide to delay or abort the deprecation and close this issue.

Deprecation checklist:

  • Open an issue (this)
  • Perform global search for usage in public repos
  • Send message to emscripten-discuss
  • Add "deprecation" warning to emcc
  • Wait at least 4 releases or 2 months
  • Remove feature from codebase
主要语言
C++
星标
27.8k
派生
3.6k
平均合并
1 天 3 小时
30 天内合并 PR
179

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

emscripten-core/emscripten 的其他 Issue

查看 emscripten-core/emscripten 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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