Commit 453b841
authored
Fix error descriptions Embedded Swift compatibility (#759)
The BridgeJS generator emits `JSError(message: String(describing: error))` for throwing `@JS` exports, but `String.init(describing:)` is unavailable in Embedded Swift, so embedded Wasm builds of any package with a throwing export fail. The caught error is statically a `JSException` with a stored `description`, so the generated glue now uses `error.description` for identical output. Snapshots regenerated.1 parent 9706c4c commit 453b841
7 files changed
Lines changed: 15 additions & 15 deletions
File tree
- Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated
- Plugins/BridgeJS
- Sources/BridgeJSCore
- Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests
- Tests/BridgeJSRuntimeTests/Generated
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6967 | 6967 | | |
6968 | 6968 | | |
6969 | 6969 | | |
6970 | | - | |
| 6970 | + | |
6971 | 6971 | | |
6972 | 6972 | | |
6973 | 6973 | | |
| |||
7002 | 7002 | | |
7003 | 7003 | | |
7004 | 7004 | | |
7005 | | - | |
| 7005 | + | |
7006 | 7006 | | |
7007 | 7007 | | |
7008 | 7008 | | |
| |||
7027 | 7027 | | |
7028 | 7028 | | |
7029 | 7029 | | |
7030 | | - | |
| 7030 | + | |
7031 | 7031 | | |
7032 | 7032 | | |
7033 | 7033 | | |
| |||
7052 | 7052 | | |
7053 | 7053 | | |
7054 | 7054 | | |
7055 | | - | |
| 7055 | + | |
7056 | 7056 | | |
7057 | 7057 | | |
7058 | 7058 | | |
| |||
7077 | 7077 | | |
7078 | 7078 | | |
7079 | 7079 | | |
7080 | | - | |
| 7080 | + | |
7081 | 7081 | | |
7082 | 7082 | | |
7083 | 7083 | | |
| |||
7102 | 7102 | | |
7103 | 7103 | | |
7104 | 7104 | | |
7105 | | - | |
| 7105 | + | |
7106 | 7106 | | |
7107 | 7107 | | |
7108 | 7108 | | |
| |||
7127 | 7127 | | |
7128 | 7128 | | |
7129 | 7129 | | |
7130 | | - | |
| 7130 | + | |
7131 | 7131 | | |
7132 | 7132 | | |
7133 | 7133 | | |
| |||
7152 | 7152 | | |
7153 | 7153 | | |
7154 | 7154 | | |
7155 | | - | |
| 7155 | + | |
7156 | 7156 | | |
7157 | 7157 | | |
7158 | 7158 | | |
| |||
7177 | 7177 | | |
7178 | 7178 | | |
7179 | 7179 | | |
7180 | | - | |
| 7180 | + | |
7181 | 7181 | | |
7182 | 7182 | | |
7183 | 7183 | | |
| |||
0 commit comments