示例#1
0
v8::Handle<v8::Value> V8Storage::indexedPropertySetter(uint32_t index, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    v8::Handle<v8::Integer> indexV8 = v8Integer(index, info.GetIsolate());
    return storageSetter(indexV8->ToString(), value, info);
}
示例#2
0
v8::Handle<v8::Value> V8Storage::namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    return storageSetter(name, value, info);
}
v8::Handle<v8::Value> V8Storage::indexedPropertySetter(uint32_t index, v8::Local<v8::Value> value, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.Storage.NamedPropertyGetter");
    v8::Local<v8::Integer> indexV8 = v8::Integer::New(index);
    return storageSetter(indexV8->ToString(), value, info);
}