| 11 | REGISTER_TYPE_WITH_PROTOTYPE(Function, Function::GetPrototype()); |
| 12 | |
| 13 | Function::Function(const String& name, Callback function, const std::vector<String>& args, |
| 14 | bool side_effect_free, bool deprecated) |
| 15 | : m_Callback(std::move(function)) |
| 16 | { |
| 17 | SetName(name, true); |
| 18 | SetSideEffectFree(side_effect_free, true); |
| 19 | SetDeprecated(deprecated, true); |
| 20 | SetArguments(Array::FromVector(args), true); |
| 21 | } |
| 22 | |
| 23 | Value Function::Invoke(const std::vector<Value>& arguments) |
| 24 | { |
nothing calls this directly
no outgoing calls
no test coverage detected