static v8::Handle<v8::Value> clearIntervalCallback(const v8::Arguments& args) { INC_STATS("DOM.WorkerContext.clearInterval"); WorkerContext* imp = V8WorkerContext::toNative(args.Holder()); EXCEPTION_BLOCK(int, handle, toInt32(args[0])); imp->clearInterval(handle); return v8::Handle<v8::Value>(); }
JSValue JSC_HOST_CALL jsWorkerContextPrototypeFunctionClearInterval(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSWorkerContext::s_info)) return throwError(exec, TypeError); JSWorkerContext* castedThisObj = static_cast<JSWorkerContext*>(asObject(thisValue)); WorkerContext* imp = static_cast<WorkerContext*>(castedThisObj->impl()); int handle = args.at(0).toInt32(exec); imp->clearInterval(handle); return jsUndefined(); }