isObjectOfClass method

bool isObjectOfClass(
  1. JSClass jsClass
)

Tests whether a JavaScript value's type is the symbol type. jsClass The JSClass to test against.

Implementation

bool isObjectOfClass(JSClass jsClass) {
  return JSValueRef.jSValueIsObjectOfClass(
          context.pointer, pointer, jsClass.pointer) ==
      1;
}