| 23 | } |
| 24 | |
| 25 | static 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 | |
| 42 | Object::Ptr Function::GetPrototype() |
nothing calls this directly
no test coverage detected