Type Definition javascriptcore_sys::JSObjectDeletePropertyCallback [] [src]

type JSObjectDeletePropertyCallback = Option<unsafe extern "C" fn(_: JSContextRef, _: JSObjectRef, _: JSStringRef, _: *mut JSValueRef) -> bool>;

The callback invoked when deleting a property.

Returns 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).