()
| 643 | const GetInvalidResponseStatus = `function response(ctx, params); ctx.response.status_code = "invalid"; end` |
| 644 | |
| 645 | func ExampleGetInvalidResponseStatus() { |
| 646 | runExample(&testContext{ |
| 647 | script: GetInvalidResponseStatus, |
| 648 | }) |
| 649 | // Output: |
| 650 | // Error calling response from function response(ctx, params); ctx.response.status_code = "invalid"; end: <script>:1: unsupported status_code type string, need a number |
| 651 | // stack traceback: |
| 652 | // [G]: in function (anonymous) |
| 653 | // <script>:1: in main chunk |
| 654 | // [G]: ? |
| 655 | } |
| 656 | |
| 657 | const SetResponseInvalidField = `function response(ctx, params); ctx.response.invalid_field = "test"; end` |
| 658 |
nothing calls this directly
no test coverage detected
searching dependent graphs…