Commit 7e242b0
* BridgeJS: support imports of `Promise` JS as `async` Swift
* E2e testing of bridging Promise<interface> returns
* fix formatting
* `JSTypedClosure`-based approach
* Clean up `BridgeJSLink`
* Fix missing `import _Concurrency`
* Fix formatting
* Use `JSTypedClosure` without wrapping the result value
* Make closure parameters as `sending`
* Check more stack ABI types
* Add support for `async` in `@JSFunction`
* Use namespaced import
* Fix missing `fetchWeatherData`
* Bring back `fetchWeatherData`
* Regenerate `fetchWeatherData` bridging code
* BridgeJS: Centralize closure sig collection in BridgeSkeletonWalker
* BridgeJS: Stop spreading isAsync handling outside of CallJSEmission
* BridgeJS: Remove error-prone default effects in thunk generation
* BridgeJSLink: Centralize async handling in ImportedThunkBuilder
* BridgeJS: Remove reundant returnType from `call` family of methods in ImportedThunkBuilder
---------
Co-authored-by: Yuta Saito <yuta@goodnotes.com>
1 parent 7be7d4e commit 7e242b0
File tree
52 files changed
+5227
-410
lines changed- Benchmarks/Sources/Generated/JavaScript
- Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated/JavaScript
- Plugins/BridgeJS
- Sources
- BridgeJSCore
- BridgeJSLink
- BridgeJSSkeleton
- TS2Swift/JavaScript
- src
- test/__snapshots__
- Tests/BridgeJSToolTests
- Inputs/MacroSwift
- __Snapshots__
- BridgeJSCodegenTests
- BridgeJSLinkTests
- Sources/JavaScriptKit
- Tests
- BridgeJSRuntimeTests
- Generated
- JavaScript
- JavaScript
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+5227
-410
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2839 | 2839 | | |
2840 | 2840 | | |
2841 | 2841 | | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
2842 | 2847 | | |
2843 | 2848 | | |
2844 | 2849 | | |
| |||
2850 | 2855 | | |
2851 | 2856 | | |
2852 | 2857 | | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
2853 | 2863 | | |
2854 | 2864 | | |
2855 | 2865 | | |
| |||
2868 | 2878 | | |
2869 | 2879 | | |
2870 | 2880 | | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
2871 | 2886 | | |
2872 | 2887 | | |
2873 | 2888 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
| |||
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
188 | | - | |
189 | | - | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | | - | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
1231 | 1232 | | |
1232 | 1233 | | |
1233 | 1234 | | |
| |||
1327 | 1328 | | |
1328 | 1329 | | |
1329 | 1330 | | |
| 1331 | + | |
1330 | 1332 | | |
1331 | 1333 | | |
1332 | 1334 | | |
| |||
1360 | 1362 | | |
1361 | 1363 | | |
1362 | 1364 | | |
| 1365 | + | |
1363 | 1366 | | |
1364 | 1367 | | |
1365 | 1368 | | |
| |||
0 commit comments