| 67 | } |
| 68 | |
| 69 | Result<Value> ValueFunction::call(ValueFunctionFlags flags, const Value* parameters, size_t size) noexcept { |
| 70 | SimpleExceptionTracker exceptionTracker; |
| 71 | auto value = (*this)(ValueFunctionCallContext(flags, parameters, size, exceptionTracker)); |
| 72 | if (!exceptionTracker) { |
| 73 | return exceptionTracker.extractError(); |
| 74 | } |
| 75 | return value; |
| 76 | } |
| 77 | |
| 78 | StringBox ValueFunction::getDebugDescription() const { |
| 79 | return STRING_FORMAT("{}@{}", getFunctionType(), reinterpret_cast<const void*>(this)); |
no test coverage detected