isInstanceOfConstructor method
Tests whether a JavaScript value is an object constructed by a given constructor, as compared by the JS instanceof operator.
Implementation
bool isInstanceOfConstructor(JSObject constructor) {
final JSException exception = JSException.create(context);
final bool ret = JSValueIsInstanceOfConstructor(
context.ref,
_ref,
constructor.ref,
exception.ref,
);
if (exception.shouldThrow) throw exception.error;
return ret;
}