Skip to content

Commit 2e5eb3e

Browse files
authored
Restore compatibility with 0.1.6: Trap is public (#223)
This type [was previously `public` in released WasmKit 0.1.6](https://swiftpackageindex.com/swiftwasm/wasmkit/0.1.6/documentation/wasmkit/trap), but made `internal` by mistake on `main` when reverting `TrapReason` to `internal` in a previous PR.
1 parent 2503b0b commit 2e5eb3e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Sources/WasmKit/Execution/Errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct Backtrace: CustomStringConvertible, Sendable {
2424
}
2525

2626
/// An error that occurs during execution of a WebAssembly module.
27-
struct Trap: Error, CustomStringConvertible {
27+
public struct Trap: Error, CustomStringConvertible {
2828
/// The reason for the trap.
2929
var reason: TrapReason
3030

Sources/WasmKitGDBHandler/WasmKitGDBHandler.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
}
8787

8888
private func hexDump<I: FixedWidthInteger>(_ value: I, endianness: Endianness) -> String {
89-
9089
var buffer = self.allocator.buffer(capacity: MemoryLayout<I>.size)
9190
buffer.writeInteger(value, endianness: endianness)
9291
return buffer.hexDump(format: .compact)

0 commit comments

Comments
 (0)