Example #1
0
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.DOMPlugin.name._get");
    DOMPlugin* imp = V8DOMPlugin::toNative(info.Holder());
    return v8String(imp->name());
}
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    DOMPlugin* imp = V8DOMPlugin::toNative(info.Holder());
    return v8String(imp->name(), info.GetIsolate());
}