JSObjectIsConstructor top-level property

bool Function(JSContextRef ctx, JSObjectRef object) JSObjectIsConstructor
final

Tests whether an object can be called as a constructor. ctx (JSContextRef) The execution context to use. object (JSObjectRef) The JSObject to test. @result (bool) true if the object can be called as a constructor, otherwise false.

Implementation

final bool Function(JSContextRef ctx, JSObjectRef object)
JSObjectIsConstructor =
    kLookup<NativeFunction<Bool Function(JSContextRef, JSObjectRef)>>(
      'JSObjectIsConstructor',
    ).asFunction();