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