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