Skip to content

Commit c24a405

Browse files
authored
Fix infinite recursion in JSValueDecoder (#6)
Fixes swiftwasm/JavaScriptKit#130
1 parent eaf324c commit c24a405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenCombineJS/JSValueDecoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ import OpenCombine
1717

1818
extension JSValueDecoder: TopLevelDecoder {
1919
public func decode<T: Decodable>(_ type: T.Type, from value: JSValue) throws -> T {
20-
try decode(type, from: value)
20+
try decode(type, from: value, userInfo: [:])
2121
}
2222
}

0 commit comments

Comments
 (0)