Skip to content

fix: align v1 enum errors and runtime assertions - #1808

Merged
mrousavy merged 3 commits into
mrousavy/v1-ios-ci-toolchainfrom
mrousavy/v1-runtime-test-expectations
Oct 20, 2026
Merged

mrousavy merged 3 commits into
mrousavy/v1-ios-ci-toolchainfrom
mrousavy/v1-runtime-test-expectations

Conversation

@mrousavy

@mrousavy mrousavy commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Stacked on #1807.

Give Swift enum conversion the same errors as C++ while keeping its own validation and member switches. Invalid values retain errors such as Cannot convert "diesel" to enum Powertrain - invalid value!; wrong-type and numeric range errors use the existing JSI accessors and numeric helper. JS-to-Swift conversion does not call the generated C++ enum converter. This also covers enums in arrays, optional properties and struct fields. Remove the Swift-specific expectations and add shared regression cases for those paths.

Update the remaining standalone assertions for the V1 APIs: qualified registry names, JS callback identity, native ArrayBuffer storage, disposed-object metadata, and the different descriptors used by the handwritten C++ and registered Swift Base/Child fixtures.

Validated locally on Xcode 27.1 / Swift 6.4 / iOS 27.0: the stack through #1809 passes all 1,485 JS cases and 13 native runner tests in the Default configuration. Nitrogen and runner typechecks, all five helper tests, and bundling pass. The three existing iOS callback exclusions remain in this PR; #1809 fixes the fixtures and enables them.

@vercel

vercel Bot commented Oct 19, 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 Oct 20, 2026 9:04am UTC

Request Review

@mrousavy
mrousavy marked this pull request as ready for review October 19, 2026 20:27
@mrousavy
mrousavy added this pull request to stack #1817 October 19, 2026 22:04
@mrousavy mrousavy changed the title test: update standalone assertions for v1 APIs fix: align v1 enum errors and runtime assertions Oct 20, 2026
@mrousavy
mrousavy removed this pull request from stack #1817 October 20, 2026 08:55
@mrousavy
mrousavy added this pull request to stack #1823 October 20, 2026 08:55
@mrousavy
mrousavy merged commit 1435f9d into v1 Oct 20, 2026
10 of 21 checks passed
mrousavy added a commit that referenced this pull request Oct 20, 2026
* test: update standalone assertions for v1 APIs

* fix: unify Swift and C++ enum conversion errors

* fix: keep Swift enum validation independent

This branch was previously deployed

1 inactive deployment
Preview — 97070e97 Deployed Oct 20, 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