MCPcopy Create free account
hub / github.com/awsm-research/LineVul / methodWithCallbackArgCallback

Function methodWithCallbackArgCallback

cppcheck/data/c_files/67.cpp:1–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1static v8::Handle<v8::Value> methodWithCallbackArgCallback(const v8::Arguments& args)
2{
3INC_STATS("DOM.TestObj.methodWithCallbackArg");
4if (args.Length() < 1)
5 return V8Proxy::throwNotEnoughArgumentsError();
6TestObj* imp = V8TestObj::toNative(args.Holder());
7if (args.Length() <= 0 || !args[0]->IsFunction())
8return throwError(TYPE_MISMATCH_ERR, args.GetIsolate());
9RefPtr<TestCallback> callback = V8TestCallback::create(args[0], getScriptExecutionContext());
10imp->methodWithCallbackArg(callback);
11return v8::Handle<v8::Value>();
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected