-
-
Notifications
You must be signed in to change notification settings - Fork 55
Comparing changes
Open a pull request
base repository: swiftwasm/JavaScriptKit
base: 3c8726e
head repository: swiftwasm/JavaScriptKit
compare: 07c1ef7
- 8 commits
- 56 files changed
- 1 contributor
Commits on Aug 23, 2025
-
BridgeJS: Standardize lift/lower pattern across Swift and JavaScript
Replace global intrinsic functions with consistent extension-based system. Each bridged type now defines standardized lift/lower operations: Swift side (type extensions): - bridgeJSLowerParameter/Return: Swift -> Wasm core types - bridgeJSLiftParameter/Return: Wasm core types -> Swift JavaScript side (JSGlueGen): - Corresponding lift/lower functions for JS <-> Wasm interop Adds CodeFragmentPrinter for improved code organization. Reduces generated code complexity across both Swift and JS.
Configuration menu - View commit details
-
Copy full SHA for 2699257 - Browse repository at this point
Copy the full SHA 2699257View commit details -
ExportSwift: Remove unused className variable
Clean up variable declaration in VariableDeclSyntax visitor.
Configuration menu - View commit details
-
Copy full SHA for 0df766e - Browse repository at this point
Copy the full SHA 0df766eView commit details -
BridgeJS: Add protocol-based intrinsic system
Introduce _BridgedSwiftTypeLoweredIntoSingleWasmCoreType protocol to formalize lift/lower operations. All basic types (Bool, Int, Float, Double) now conform to this protocol with standardized bridgeJS* methods. Add _BridgedSwiftHeapObject and _BridgedSwiftEnumNoPayload protocols for heap objects and enums respectively. Update generated code and test snapshots to use new protocol-based intrinsic functions.
Configuration menu - View commit details
-
Copy full SHA for e546582 - Browse repository at this point
Copy the full SHA e546582View commit details -
BridgeJS: Complete protocol-based lift/lower for ImportTS and _JSBrid…
…gedClass Add _JSBridgedClass protocol with lift/lower operations for JavaScript objects imported into Swift. Update ImportTS code generation to use new protocol-based bridgeJS* methods. Update all generated ImportTS Swift files and test snapshots to use the new bridgeJS* method calls instead of legacy functions.
Configuration menu - View commit details
-
Copy full SHA for 177be43 - Browse repository at this point
Copy the full SHA 177be43View commit details -
BridgeJS: Provide default implementation for BridgeJS functions
This is a workaround for the issue that reference to imported bjs wasm functions can't be eliminated in debug builds, even if they are not reachable at runtime without explicit BridgeJS usage.
Configuration menu - View commit details
-
Copy full SHA for 9aad68d - Browse repository at this point
Copy the full SHA 9aad68dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a31c5e - Browse repository at this point
Copy the full SHA 7a31c5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f65738 - Browse repository at this point
Copy the full SHA 5f65738View commit details
Commits on Aug 24, 2025
-
BridgeJS: Clean up protocol definitions and documentation
Remove unused _BridgedSwiftTypeLoweredIntoWasmCoreType protocol and fix incomplete documentation comment for the remaining protocol.
Configuration menu - View commit details
-
Copy full SHA for 07c1ef7 - Browse repository at this point
Copy the full SHA 07c1ef7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 3c8726e...07c1ef7