static v8::Handle<v8::Boolean> storageDeleter(v8::Local<v8::String> v8Name, const v8::AccessorInfo& info)
{
    Storage* storage = V8Storage::toNative(info.Holder());
    String name = toWebCoreString(v8Name);
    
    if (storage->contains(name)) {
        storage->removeItem(name);
        return v8::True();
    }

    return deletionNotHandledByInterceptor();
}
Esempio n. 2
0
static v8::Handle<v8::Boolean> storageDeleter(v8::Local<v8::String> v8Name, const v8::AccessorInfo& info)
{
    Storage* storage = V8DOMWrapper::convertToNativeObject<Storage>(V8ClassIndex::STORAGE, info.Holder());
    String name = toWebCoreString(v8Name);
    
    if (storage->contains(name)) {
        storage->removeItem(name);
        return v8::True();
    }

    return deletionNotHandledByInterceptor();
}