We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c519ae commit b16ed8dCopy full SHA for b16ed8d
Sources/ECMASwift/API/Headers/Headers.swift
@@ -43,9 +43,9 @@ struct HeadersAPI {
43
func registerAPIInto(context: JSContext) {
44
let headersClass: @convention(block) (JSValue?) -> Headers = { headers in
45
if let headers, headers.hasValue {
46
- Headers(withHeaders: headers.toDictionary() as! [String: String])
+ return Headers(withHeaders: headers.toDictionary() as! [String: String])
47
} else {
48
- Headers()
+ return Headers()
49
}
50
51
context.setObject(
0 commit comments