Skip to content

feat: expose GlobalErrorHandler to Swift and Kotlin - #2029

Merged
mrousavy merged 2 commits into
v1from
mrousavy/global-error-handler-native-api
Nov 2, 2026
Merged

mrousavy merged 2 commits into
v1from
mrousavy/global-error-handler-native-api

Conversation

@mrousavy

@mrousavy mrousavy commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Adds public GlobalErrorHandler.reportError APIs for Swift Error and Kotlin Throwable, covering all six error sources. Swift aliases the C++ ErrorSource enum with SWIFT_NAME case names. Kotlin callbacks now use the public API. Reporting keeps the existing debug-only logging behavior.

Validated with Kotlin compilation, Android NDK compilation, formatting, and external Swift/JNI debug and release smoke tests covering every source and Unicode error messages. Swift checks also cover enum type identity, exhaustive switches, and Sendable use. Full runtime suites were not run because this checkout lacks the Hermes submodule.

@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
nitro-docs Skipped Skipped Nov 2, 2026 11:46am UTC

Request Review

@mrousavy
mrousavy merged commit 385a6d2 into v1 Nov 2, 2026
11 of 18 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 250967d5 Deployed Nov 2, 2026 by vercel[bot]
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