Skip to content

Commit 899fa63

Browse files
Add Equatable conformances to new types
1 parent 0fc7f41 commit 899fa63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Sources/JavaScriptKit/BasicObjects/JSPromise.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class JSPromise: JSBridgedClass {
3232
}
3333

3434
/// The result of a promise.
35-
public enum Result {
35+
public enum Result: Equatable {
3636
/// The promise resolved with a value.
3737
case success(JSValue)
3838
/// The promise rejected with a value.

Diff for: Sources/JavaScriptKit/JSException.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/// let jsErrorValue = error.thrownValue
1313
/// }
1414
/// ```
15-
public struct JSException: Error {
15+
public struct JSException: Error, Equatable {
1616
/// The value thrown from JavaScript.
1717
/// This can be any JavaScript value (error object, string, number, etc.).
1818
public var thrownValue: JSValue {

0 commit comments

Comments
 (0)