Commit 88abb13
committed
Fix availability marker for Swift 5.9 compiler targeting host machine
When building JavaScriptKit with Xcode, targeting host machine, the
`func enqueue(_: ExecutorJob)` must be guarded by `@available` attribute
explicitly. And due to the 5.9 compiler issue, it emit some migration
warnings too consevatively. This commit suppress the warning by updating
minimum available OS versions. Those versions should not be a problem
when building for Wasm.1 parent 5bca895 commit 88abb13Copy full SHA for 88abb13
3 files changed
+13-8Lines changed: 13 additions & 8 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Sources
- JavaScriptEventLoopTestSupport
- JavaScriptEventLoop
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift
Copy file name to clipboardExpand all lines: Sources/JavaScriptEventLoop/JavaScriptEventLoop.swift+11-6Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
| 37 | + |
38 | 38 | |
39 | 39 | |
40 | 40 | |
| ||
92 | 92 | |
93 | 93 | |
94 | 94 | |
95 | | - |
| 95 | + |
96 | 96 | |
97 | 97 | |
98 | 98 | |
| ||
112 | 112 | |
113 | 113 | |
114 | 114 | |
115 | | - |
| 115 | + |
116 | 116 | |
117 | 117 | |
118 | 118 | |
| ||
130 | 130 | |
131 | 131 | |
132 | 132 | |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
133 | 137 | |
| 138 | + |
134 | 139 | |
135 | 140 | |
136 | 141 | |
137 | | - |
| 142 | + |
138 | 143 | |
139 | 144 | |
140 | 145 | |
141 | | - |
| 146 | + |
142 | 147 | |
143 | 148 | |
144 | 149 | |
| ||
155 | 160 | |
156 | 161 | |
157 | 162 | |
158 | | - |
| 163 | + |
159 | 164 | |
160 | 165 | |
161 | 166 | |
|
Collapse file
Sources/JavaScriptEventLoop/JobQueue.swift
Copy file name to clipboardExpand all lines: Sources/JavaScriptEventLoop/JobQueue.swift+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
16 | 16 | |
17 | 17 | |
18 | 18 | |
|
Collapse file
Sources/JavaScriptEventLoopTestSupport/JavaScriptEventLoopTestSupport.swift
Copy file name to clipboardExpand all lines: Sources/JavaScriptEventLoopTestSupport/JavaScriptEventLoopTestSupport.swift+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
|
0 commit comments