EvalWithCommandLineAPI is an evaluate option that makes the DevTools Command Line API available to the evaluated script. See [Evaluate] for how evaluate actions work. Note: do not use this with untrusted JavaScript.
(p *runtime.EvaluateParams)
| 141 | // |
| 142 | // Note: do not use this with untrusted JavaScript. |
| 143 | func EvalWithCommandLineAPI(p *runtime.EvaluateParams) { |
| 144 | p.IncludeCommandLineAPI = ptr(true) |
| 145 | } |
| 146 | |
| 147 | // EvalIgnoreExceptions is an evaluate option that makes the evaluation ignore |
| 148 | // exceptions. |