Commit 389fe9e
committed
Added import-side array coverage and cleaned up the generator/runtime:
- New JS imports and runtime tests for arrays: `Tests/BridgeJSRuntimeTests/ImportArrayAPIs.swift` and added roundtrip/length checks in `Tests/BridgeJSRuntimeTests/ImportAPITests.swift` with JS implementations in `Tests/prelude.mjs`.
- Fixed import codegen to avoid unused return warnings and support stack-only returns: `Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift` now skips `ret` binding when ABI return is absent.
- Allowed zero-parameter lifting fragments in JS glue to handle stack-returning arrays: `Plugins/BridgeJS/Sources/BridgeJSLink/BridgeJSLink.swift`.
- Regenerated BridgeJS artifacts for runtime tests.
Tests: `SWIFT_SDK_ID=DEVELOPMENT-SNAPSHOT-2025-11-03-a-wasm32-unknown-wasip1 make unittest` (all 20 suites / 96 tests passing).1 parent 3774db4 commit 389fe9e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
209 | 213 | | |
210 | 214 | | |
211 | 215 | | |
| |||
0 commit comments