compileScript

Compiles expression.


suspend fun compileScript(expression: String, sourceURL: String, persistScript: Boolean, executionContextId: Int? = null): Runtime.CompileScriptReturn

Compiles expression.

Parameters

expression

Expression to compile.

sourceURL

Source url to be set for the script.

persistScript

Specifies whether the compiled script should be persisted.

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.