Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Runtime.CompileScriptRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { CompileScriptRequest } = Protocol.Runtime;

Properties

expression: string

Expression to compile.

sourceURL: string

Source url to be set for the script.

persistScript: boolean

Specifies whether the compiled script should be persisted.

optional
executionContextId: ExecutionContextId

Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page.