Skip to content

Fix JSCRuntime invalidate() specifier ordering (noexcept before JSI_DISABLE_ASAN)#2967

Closed
Saadnajmi wants to merge 1 commit into
microsoft:mainfrom
Saadnajmi:fix/jsc-runtime-invalidate-noexcept-asan-order
Closed

Fix JSCRuntime invalidate() specifier ordering (noexcept before JSI_DISABLE_ASAN)#2967
Saadnajmi wants to merge 1 commit into
microsoft:mainfrom
Saadnajmi:fix/jsc-runtime-invalidate-noexcept-asan-order

Conversation

@Saadnajmi
Copy link
Copy Markdown
Collaborator

Clang requires `noexcept` to appear before compiler attributes like `attribute((no_sanitize("address")))`. Having `JSI_DISABLE_ASAN` (which expands to that attribute when ASAN is enabled) after `noexcept` causes a build error:\n\n```\nerror: expected function body after function declarator\n```\n\nReorder to: `noexcept JSI_DISABLE_ASAN` across all four affected sites.

…ISABLE_ASAN)

Clang requires noexcept to appear before compiler attributes like
__attribute__((no_sanitize("address"))). Having JSI_DISABLE_ASAN
(which expands to that attribute when ASAN is enabled) after noexcept
causes a build error:

  error: expected function body after function declarator

Reorder to: noexcept JSI_DISABLE_ASAN across all four affected sites.
@Saadnajmi Saadnajmi requested a review from a team as a code owner May 19, 2026 21:20
@Saadnajmi Saadnajmi closed this May 19, 2026
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.

1 participant