File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public typealias JSValueCodable = JSValueEncodable & JSValueDecodable
29
29
extension JSBridgedType {
30
30
public static func canDecode( from jsValue: JSValue ) -> Bool {
31
31
if let object = jsValue. object {
32
- if let constructor = Self . constructor {
32
+ if let constructor = Self . classRef {
33
33
return object. instanceof ( constructor)
34
34
}
35
35
return true
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ public func staticCast<Type: JSBridgedType>(_ ref: JSBridgedType) -> Type {
237
237
}
238
238
239
239
public func dynamicCast< Type: JSBridgedType > ( _ ref: JSBridgedType ) -> Type ? {
240
- guard let constructor = Type . constructor , ref. objectRef. instanceof ( constructor) else {
240
+ guard let constructor = Type . classRef , ref. objectRef. instanceof ( constructor) else {
241
241
return nil
242
242
}
243
243
return staticCast ( ref)
You can’t perform that action at this time.
0 commit comments