hasPropertyForKey method

bool hasPropertyForKey(
  1. JSValue propertyKey
)

Implementation

bool hasPropertyForKey(JSValue propertyKey) {
  final JSException exception = JSException.create(_context);
  try {
    final bool result = js_bd.JSObjectHasPropertyForKey(_context.ref, _ref, propertyKey.ref, exception.ref);
    if (exception.shouldThrow) {
      throw exception.error;
    }
    return result;
  } finally {
    exception.release();
  }
}