Example #1
0
JSValue jsIDBIndexName(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSIDBIndex* castedThis = static_cast<JSIDBIndex*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    IDBIndex* imp = static_cast<IDBIndex*>(castedThis->impl());
    JSValue result = jsString(exec, imp->name());
    return result;
}
Example #2
0
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.IDBIndex.name._get");
    IDBIndex* imp = V8IDBIndex::toNative(info.Holder());
    return v8String(imp->name());
}