JSValueIsInstanceOfConstructor(_:_:_:_:)
Tests whether a JavaScript value is an object that the specified constructor creates.
Declaration
func JSValueIsInstanceOfConstructor(_ ctx: JSContextRef!, _ value: JSValueRef!, _ constructor: JSObjectRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> BoolParameters
- ctx:
The execution context to use.
- value:
The Jsvalueref to test.
- constructor:
The constructor to test against.
- exception:
A pointer to a Jsvalueref to store an exception in, if any. Pass
NULLto discard any exception.
Return Value
true if the value is an object that constructor creates, according to the JavaScript instanceof operator; otherwise, false.