static void indexedPropertyDeleter(unsigned index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { TestEventTarget* collection = V8TestEventTarget::toNative(info.Holder()); ExceptionState exceptionState(info.Holder(), info.GetIsolate()); bool result = collection->anonymousIndexedDeleter(index, exceptionState); if (exceptionState.throwIfNeeded()) return; return v8SetReturnValueBool(info, result); }
static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean>& info) { TestEventTarget* imp = V8TestEventTarget::toNative(info.Holder()); ExceptionState exceptionState(info.Holder(), info.GetIsolate()); DeleteResult result = imp->anonymousIndexedDeleter(index, exceptionState); if (exceptionState.throwIfNeeded()) return; if (result != DeleteUnknownProperty) return v8SetReturnValueBool(info, result == DeleteSuccess); }