JSValue jsWorkerNavigatorOnLine(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 = jsBoolean(imp->onLine()); return result; }
static v8::Handle<v8::Value> onLineAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.WorkerNavigator.onLine._get"); WorkerNavigator* imp = V8WorkerNavigator::toNative(info.Holder()); return v8Boolean(imp->onLine()); }