JSObjectDeletePropertyCallback typedef

Int8 JSObjectDeletePropertyCallback (
  1. Pointer<NativeType> ctx,
  2. Pointer<NativeType> object,
  3. Pointer<NativeType> propertyName,
  4. Pointer<Pointer<NativeType>> exception
)

typedef JSObjectDeletePropertyCallback The callback invoked when deleting a property. ctx The execution context to use. object The JSObject in which to delete the property. propertyName A JSString containing the name of the property to delete. exception A pointer to a JSValueRef in which to return an exception, if any. @result true if propertyName was successfully deleted, otherwise false. If you named your function DeleteProperty, you would declare it like this:

bool DeleteProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);

If this function returns false, the delete request forwards to object's statically declared properties, then its parent class chain (which includes the default object class). typedef bool (JSObjectDeletePropertyCallback) (JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef exception);

Implementation

typedef JSObjectDeletePropertyCallback = Int8 Function(Pointer ctx,
    Pointer object, Pointer propertyName, Pointer<Pointer> exception);