Skip to content

chore!: Remove no-op WASM RethrowNativeExceptions config - #23457

Merged
MartinZikmund merged 1 commit into
dev/mazi/breakingchangesfrom
dev/mazi/bc/bc05-rethrownativeexceptions
Jun 15, 2026
Merged

MartinZikmund merged 1 commit into
dev/mazi/breakingchangesfrom
dev/mazi/bc/bc05-rethrownativeexceptions

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: #8339

Part of the breaking-changes rollout epic (#8339). Reference only — this PR must not auto-close the umbrella epic.

PR Type:

💬 Other... (Deliberate breaking removal of a deprecated, no-op public API)

What changed? 🚀

Removed the WASM-only, EditorBrowsable-hidden, no-op FoundationFeatureConfiguration.Runtime.RethrowNativeExceptions property, along with its now-empty Runtime nested class.

The property was a pure no-op (getter always returned true, setter did nothing) and was already explicitly tagged // Obsolete, remove in next major. It was wrapped in #if __WASM__, and RethrowNativeExceptions was the only member of the Runtime class, so removing the property leaves the class empty — the entire #if __WASM__ ... Runtime { ... } ... #endif block is therefore deleted.

A repo-wide grep confirms there are no consumers of either RethrowNativeExceptions or FoundationFeatureConfiguration.Runtime (only matches are this property's own definition and the breaking-changes spec/assessment files describing this removal).

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — N/A, pure removal of a no-op API with no behavior to test.
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — N/A.
  • 🖼️ Validated PR Screenshots Compare Test Run results. — N/A, no UI impact.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

Breaking change: The public property Uno.FoundationFeatureConfiguration.Runtime.RethrowNativeExceptions (and the Runtime nested class) is removed. This API existed only on the WASM target, was hidden from IntelliSense (EditorBrowsableState.Never), and had no effect (the getter was hardcoded to true and the setter was empty).

Migration path: Delete any references to FoundationFeatureConfiguration.Runtime.RethrowNativeExceptions. Since the property was a no-op, removing the code has no behavioral impact.

🤖 Generated with Claude Code

Removes the WASM-only, EditorBrowsable-hidden, no-op
FoundationFeatureConfiguration.Runtime.RethrowNativeExceptions
property (getter always returned true, setter did nothing) along
with its now-empty Runtime nested class. The property was already
tagged "Obsolete, remove in next major".

Part of breaking-changes rollout (#8339).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

github-actions Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 46s —— View job


Code Review

  • Gather context and read changed file
  • Review diff and verify correctness
  • Check for remaining consumers
  • Post summary

Verdict: LGTM ✓ — No issues found.

This is a clean, well-scoped removal. Specific checks:

  • No remaining consumers: A repo-wide grep finds zero references to RethrowNativeExceptions or FoundationFeatureConfiguration.Runtime outside the now-deleted block and the breaking-changes spec/assessment files. ✓
  • Correct scope: The entire #if __WASM__ ... Runtime { ... } ... #endif block is deleted, which is correct since RethrowNativeExceptions was the only member of the Runtime class — no empty class is left behind. ✓
  • RestoreDefaults() unaffected: The method only restores Rect defaults; the removed Runtime class had no state to restore. ✓
  • Commit title: chore!: Remove no-op WASM RethrowNativeExceptions config follows Conventional Commits; ! correctly signals the breaking change. ✓
  • No behavioral change: The getter was hardcoded to true and the setter was empty — removing it is a pure API-surface removal with no runtime impact. ✓
  • No cross-cutting concerns: Single file touched, no generated code, no tests to update, no samples to adjust. ✓

Validation evidence:

  • Code review assessment: diff is correct by inspection.
  • Compile/runtime validation: not executed locally (pure deletion of a no-op with no call sites — compile risk is negligible, but CI will confirm).

@MartinZikmund
MartinZikmund merged commit 9e0a610 into dev/mazi/breakingchanges Jun 15, 2026
9 of 10 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/bc/bc05-rethrownativeexceptions branch June 15, 2026 16:04
@github-actions github-actions Bot mentioned this pull request Jun 16, 2026
4 of 5 tasks
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