JSValue jsWorkerNavigatorAppName(ExecState* exec, JSValue slotBase, const Identifier&) { JSWorkerNavigator* castedThis = static_cast<JSWorkerNavigator*>(asObject(slotBase)); UNUSED_PARAM(exec); WorkerNavigator* imp = static_cast<WorkerNavigator*>(castedThis->impl()); JSValue result = jsString(exec, imp->appName()); return result; }
static v8::Handle<v8::Value> appNameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.WorkerNavigator.appName._get"); WorkerNavigator* imp = V8WorkerNavigator::toNative(info.Holder()); return v8String(imp->appName()); }