Skip to content
This repository was archived by the owner on Nov 9, 2026. It is now read-only.

Commit 33e4a23

Browse files
bghgaryCopilot
andauthored
Rename AbortController CMake option without breaking existing consumers (#261)
[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. --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent b2b51ca commit 33e4a23

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,19 @@ option(JSRUNTIMEHOST_POLYFILL_SCHEDULING "Include JsRuntimeHost Polyfill Schedul
9595
option(JSRUNTIMEHOST_POLYFILL_XMLHTTPREQUEST "Include JsRuntimeHost Polyfill XMLHttpRequest." ON)
9696
option(JSRUNTIMEHOST_POLYFILL_FETCH "Include JsRuntimeHost Polyfill fetch." ON)
9797
option(JSRUNTIMEHOST_POLYFILL_URL "Include JsRuntimeHost Polyfill URL and URLSearchParams." ON)
98-
option(JSRUNTIMEHOST_POLYFILL_ABORT_CONTROLLER "Include JsRuntimeHost Polyfills AbortController and AbortSignal." ON)
98+
option(JSRUNTIMEHOST_POLYFILL_ABORTCONTROLLER "Include JsRuntimeHost Polyfills AbortController and AbortSignal." ON)
9999
option(JSRUNTIMEHOST_POLYFILL_WEBSOCKET "Include JsRuntimeHost Polyfill WebSocket." ON)
100100
option(JSRUNTIMEHOST_POLYFILL_BLOB "Include JsRuntimeHost Polyfill Blob." ON)
101101
option(JSRUNTIMEHOST_POLYFILL_FILE "Include JsRuntimeHost Polyfill File and FileReader." ON)
102102
option(JSRUNTIMEHOST_POLYFILL_PERFORMANCE "Include JsRuntimeHost Polyfill Performance." ON)
103103
option(JSRUNTIMEHOST_POLYFILL_TEXTDECODER "Include JsRuntimeHost Polyfill TextDecoder." ON)
104104
option(JSRUNTIMEHOST_POLYFILL_TEXTENCODER "Include JsRuntimeHost Polyfill TextEncoder." ON)
105105

106+
# Compatibility with the previous AbortController option.
107+
if(DEFINED JSRUNTIMEHOST_POLYFILL_ABORT_CONTROLLER)
108+
set(JSRUNTIMEHOST_POLYFILL_ABORTCONTROLLER "${JSRUNTIMEHOST_POLYFILL_ABORT_CONTROLLER}")
109+
endif()
110+
106111
# Sanitizers
107112
option(ENABLE_SANITIZERS "Enable AddressSanitizer and UBSan" OFF)
108113
option(ENABLE_THREAD_SANITIZER "Enable ThreadSanitizer" OFF)

‎Polyfills/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(JSRUNTIMEHOST_POLYFILL_URL)
1818
add_subdirectory(URL)
1919
endif()
2020

21-
if(JSRUNTIMEHOST_POLYFILL_ABORT_CONTROLLER)
21+
if(JSRUNTIMEHOST_POLYFILL_ABORTCONTROLLER)
2222
add_subdirectory(AbortController)
2323
endif()
2424

0 commit comments

Comments
 (0)