batch/allocator should handle these?
(format string, args ...any)
| 605 | // batch/allocator should handle these? |
| 606 | |
| 607 | func (c *Context) NewErrorf(format string, args ...any) Value { |
| 608 | return NewValue(c.StringTypeError(), fmt.Appendf(nil, format, args...)) |
| 609 | } |
| 610 | |
| 611 | func (c *Context) NewError(err error) Value { |
| 612 | return NewValue(c.StringTypeError(), []byte(err.Error())) |