예제 #1
0
static v8::Handle<v8::Value> lengthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    INC_STATS("DOM.DOMPlugin.length._get");
    DOMPlugin* imp = V8DOMPlugin::toNative(info.Holder());
    return v8::Integer::NewFromUnsigned(imp->length());
}
static v8::Handle<v8::Value> lengthAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
    DOMPlugin* imp = V8DOMPlugin::toNative(info.Holder());
    return v8UnsignedInteger(imp->length(), info.GetIsolate());
}