Skip to content

Commit bbf990b

Browse files
committed
Finish rename
1 parent 4043e2b commit bbf990b

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 JSObjectRef.instanceof(object, constructor: constructor)
3434
}
3535
return true

Sources/JavaScriptKit/Support.swift

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

236236
public func dynamicCast<Type: JSBridgedType>(_ ref: JSBridgedType) -> Type? {
237-
guard let constructor = Type.constructor, JSObjectRef.instanceof(ref.objectRef, constructor: constructor) else {
237+
guard let constructor = Type.classRef, JSObjectRef.instanceof(ref.objectRef, constructor: constructor) else {
238238
return nil
239239
}
240240
return staticCast(ref)

0 commit comments

Comments
 (0)