MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / eval

Method eval

extension-api/ExtensionAPI.d.ts:86–86  ·  view source on GitHub ↗

* Evaluates a JavaScript expression in the context of the inspected page. * * If a `callback` is provided, it is invoked with the result and * exception information and the method returns `void`. If no `callback` * is provided, the method returns a `Promise`. *

(expression: string, options?: {
        scriptExecutionContext?: string,
        frameURL?: string,
        useContentScriptContext?: boolean,
      })

Source from the content-addressed store, hash-verified

84 * provided, otherwise void. Rejects with an error object on failure.
85 */
86 eval<E = unknown>(expression: string, options?: {
87 scriptExecutionContext?: string,
88 frameURL?: string,
89 useContentScriptContext?: boolean,

Callers 3

applyTransferFnsFunction · 0.65
dispatchMessageMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected