Adds full supposed for Wasm in the swift lib (#7328)

Adds tests for wasm module & github action
This commit is contained in:
mustiikhalil
2022-05-29 20:56:33 +02:00
committed by GitHub
parent 9aa08a429e
commit 967df08b1d
26 changed files with 3092 additions and 12 deletions

View File

@@ -14,7 +14,11 @@
* limitations under the License.
*/
#if !os(WASI)
import Foundation
#else
import SwiftOverlayShims
#endif
/// Collection of thrown from the Flatbuffer verifier
public enum FlatbuffersErrors: Error, Equatable {
@@ -57,10 +61,17 @@ public enum FlatbuffersErrors: Error, Equatable {
fieldName: String)
case apparentSizeTooLarge
public static func == (
lhs: FlatbuffersErrors,
rhs: FlatbuffersErrors) -> Bool
{
lhs.localizedDescription == rhs.localizedDescription
}
}
#if !os(WASI)
extension FlatbuffersErrors {
public static func == (
lhs: FlatbuffersErrors,
rhs: FlatbuffersErrors) -> Bool
{
lhs.localizedDescription == rhs.localizedDescription
}
}
#endif