()
| 657 | const SetResponseInvalidField = `function response(ctx, params); ctx.response.invalid_field = "test"; end` |
| 658 | |
| 659 | func ExampleSetResponseInvalidField() { |
| 660 | runExample(&testContext{ |
| 661 | script: SetResponseInvalidField, |
| 662 | }) |
| 663 | // Output: |
| 664 | // Error calling response from function response(ctx, params); ctx.response.invalid_field = "test"; end: <script>:1: unsupported response field invalid_field |
| 665 | // stack traceback: |
| 666 | // [G]: in function (anonymous) |
| 667 | // <script>:1: in main chunk |
| 668 | // [G]: ? |
| 669 | } |
| 670 | |
| 671 | const GetResponseInvalidField = ` |
| 672 | function response(ctx, params) |
nothing calls this directly
no test coverage detected
searching dependent graphs…