Skip to content

Commit 3eb0c04

Browse files
committed
Finish rename
1 parent 08b3c0d commit 3eb0c04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/JavaScriptKit/JSValueConvertible.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public typealias JSValueCodable = JSValueEncodable & JSValueDecodable
2929
extension JSBridgedType {
3030
public static func canDecode(from jsValue: JSValue) -> Bool {
3131
if let object = jsValue.object {
32-
if let constructor = Self.constructor {
32+
if let constructor = Self.classRef {
3333
return object.instanceof(constructor)
3434
}
3535
return true

Sources/JavaScriptKit/Support.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public func staticCast<Type: JSBridgedType>(_ ref: JSBridgedType) -> Type {
237237
}
238238

239239
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 {
241241
return nil
242242
}
243243
return staticCast(ref)

0 commit comments

Comments
 (0)