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 671a02e commit 959379fCopy full SHA for 959379f
Sources/JavaScriptKit/JSObject.swift
@@ -30,8 +30,8 @@ public class JSObjectRef: Equatable {
30
set { setJSValue(this: self, index: Int32(index), value: newValue) }
31
}
32
33
- public func instanceof(_ constructor: JSFunctionRef) -> Bool {
34
- _instanceof(self.id, constructor.id)
+ public static func instanceof(_ instance: JSObjectRef, constructor: JSFunctionRef) -> Bool {
+ _instanceof(instance.id, constructor.id)
35
36
37
static let _JS_Predef_Value_Global: UInt32 = 0
0 commit comments