MCPcopy Create free account
hub / github.com/Icinga/icinga2 / FunctionCallV

Function FunctionCallV

lib/base/function-script.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25static Value FunctionCallV(const Value& thisArg, const Array::Ptr& args)
26{
27 ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
28 Function::Ptr self = static_cast<Function::Ptr>(vframe->Self);
29 REQUIRE_NOT_NULL(self);
30
31 std::vector<Value> uargs;
32
33 {
34 ObjectLock olock(args);
35 uargs = std::vector<Value>(args->Begin(), args->End());
36 }
37
38 return self->InvokeThis(thisArg, uargs);
39}
40
41
42Object::Ptr Function::GetPrototype()

Callers

nothing calls this directly

Calls 3

InvokeThisMethod · 0.80
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected