Skip to content

Rename AbortController CMake option without breaking existing consumers - #261

Merged
bghgary merged 4 commits into
BabylonJS:mainfrom
bghgary:bghgary-abortcontroller-cmake-option-rename
Sep 29, 2026
Merged

bghgary merged 4 commits into
BabylonJS:mainfrom
bghgary:bghgary-abortcontroller-cmake-option-rename

Conversation

@bghgary

@bghgary bghgary commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

[Created by Copilot on behalf of @bghgary]

Context

The AbortController polyfill option’s spelling is inconsistent with the other polyfill options.

Compatibility

Use JSRUNTIMEHOST_POLYFILL_ABORTCONTROLLER going forward. The old spelling remains supported so existing consumers continue to select the same target; if both names are set, the old value takes precedence.

Preserve the old spelling as a default for the new option and reject conflicting settings to avoid silently enabling a disabled polyfill.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 20:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The alias behavior, conflict detection, target gating, and documentation are consistent with the compatibility goal.

Review effort: Balanced
Findings: None

What changed in this PR

Renames the AbortController CMake option while preserving compatibility with existing consumers.

Changes:

  • Adds the new option name with legacy-value fallback and conflict detection.
  • Updates target gating and documentation.
File Description
CMakeLists.txt Defines compatibility and conflict handling.
Polyfills/​CMakeLists.txt Uses the renamed option.
Polyfills/​AbortController/​Readme.md Documents both accepted spellings.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

bghgary and others added 3 commits September 29, 2026 13:27
Translate the legacy setting only when the new option is absent. Explicit settings of the new option win without a conflict error.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Show only the new option in the option list and map the old variable onto it afterward. Drop the extra README migration text.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the new CMake option in the option list and apply the old spelling only to the effective value.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bghgary
bghgary merged commit 33e4a23 into BabylonJS:main Sep 29, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants