Deprecation proposal for `Module['ctx']`

Đang mở
#28,081 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@PedroRosalba đang làm issue này rồi.

Từ ngày 5/11/2026.

  • #28178 của @PedroRosalba — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, wasm
Lĩnh vực
build-system, web-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
27.8k
Fork
3.6k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
181

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của emscripten-core/emscripten

Tất cả issue của emscripten-core/emscripten

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.