()
| 2310 | } |
| 2311 | |
| 2312 | func ExampleRuntime_SetParserOptions() { |
| 2313 | vm := New() |
| 2314 | vm.SetParserOptions(parser.WithDisableSourceMaps) |
| 2315 | |
| 2316 | res, err := vm.RunString(` |
| 2317 | "I did not hang!"; |
| 2318 | //# sourceMappingURL=/dev/zero`) |
| 2319 | |
| 2320 | if err != nil { |
| 2321 | panic(err) |
| 2322 | } |
| 2323 | fmt.Println(res.String()) |
| 2324 | // Output: I did not hang! |
| 2325 | } |
| 2326 | |
| 2327 | func TestRuntime_SetParserOptions_Eval(t *testing.T) { |
| 2328 | vm := New() |
nothing calls this directly
no test coverage detected
searching dependent graphs…