Skip to content

Commit a1e3d93

Browse files
Fix typed error catch in JSRemote continuation context
Co-authored-by: Shelley <shelley@exe.dev>
1 parent 824723d commit a1e3d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JavaScriptEventLoop/JSRemote.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private final class _JSRemoteContext: @unchecked Sendable {
6868
self.invokeBody = {
6969
do {
7070
continuation.resume(returning: .success(try body(sourceObject)))
71-
} catch let error {
71+
} catch let error as E {
7272
continuation.resume(returning: .failure(error))
7373
}
7474
return false

0 commit comments

Comments
 (0)