Skip to content

Commit ea55aa5

Browse files
committed
Fixed JSType.toString()
1 parent e4f4025 commit ea55aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JavaScriptKit/JS Types/JSType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public protocol JSType: JSValueConvertible, JSValueConstructible {
1616
internal extension JSType {
1717

1818
func toString() -> String? {
19-
return jsObject.toString.function?().string
19+
return jsObject.toString.function?.apply(this: jsObject).string
2020
}
2121
}
2222

0 commit comments

Comments
 (0)