()
| 133 | } |
| 134 | |
| 135 | func ExampleLuaOptions_disableAll() { |
| 136 | runExampleWithOptions( |
| 137 | LuaOptions{ |
| 138 | // use non-existing module |
| 139 | Modules: []string{"none"}, |
| 140 | }, |
| 141 | testScript(`function request() print("test") end`), |
| 142 | ) |
| 143 | // Output: |
| 144 | // Error calling request from function request() print("test") end: <script>:1: attempt to call a non-function object |
| 145 | // stack traceback: |
| 146 | // <script>:1: in main chunk |
| 147 | // [G]: ? |
| 148 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…