(args []super.Value)
| 89 | type HasError struct{} |
| 90 | |
| 91 | func (h HasError) Call(args []super.Value) super.Value { |
| 92 | return super.NewBool(h.hasError(args[0].Type(), args[0].Bytes())) |
| 93 | } |
| 94 | |
| 95 | func (h HasError) hasError(t super.Type, b scode.Bytes) bool { |
| 96 | switch typ := super.TypeUnder(t).(type) { |