EvaluateRequest

data class EvaluateRequest(expression: String, objectGroup: String?, includeCommandLineAPI: Boolean?, silent: Boolean?, contextId: ExecutionContextId?, returnByValue: Boolean?, generatePreview: Boolean?, userGesture: Boolean?, awaitPromise: Boolean?, throwOnSideEffect: Boolean?, timeout: TimeDelta?, disableBreaks: Boolean?, replMode: Boolean?, allowUnsafeEvalBlockedByCSP: Boolean?, uniqueContextId: String?)

Represents request frame that can be used with Runtime#evaluate operation call.

Evaluates expression on global object.

See also

Constructors

EvaluateRequest
Link copied to clipboard
fun EvaluateRequest(expression: String, objectGroup: String? = null, includeCommandLineAPI: Boolean? = null, silent: Boolean? = null, contextId: ExecutionContextId? = null, returnByValue: Boolean? = null, generatePreview: Boolean? = null, userGesture: Boolean? = null, awaitPromise: Boolean? = null, throwOnSideEffect: Boolean? = null, timeout: TimeDelta? = null, disableBreaks: Boolean? = null, replMode: Boolean? = null, allowUnsafeEvalBlockedByCSP: Boolean? = null, uniqueContextId: String? = null)

Properties

allowUnsafeEvalBlockedByCSP
Link copied to clipboard
val allowUnsafeEvalBlockedByCSP: Boolean? = null
The Content Security Policy (CSP) for the target might block 'unsafe-eval' which includes eval(), Function(), setTimeout() and setInterval() when called with non-callable arguments.
awaitPromise
Link copied to clipboard
val awaitPromise: Boolean? = null
Whether execution should await for resulting value and return once awaited promise is resolved.
contextId
Link copied to clipboard
val contextId: ExecutionContextId? = null
Specifies in which execution context to perform evaluation.
disableBreaks
Link copied to clipboard
val disableBreaks: Boolean? = null
Disable breakpoints during execution.
expression
Link copied to clipboard
val expression: String
Expression to evaluate.
generatePreview
Link copied to clipboard
val generatePreview: Boolean? = null
Whether preview should be generated for the result.
includeCommandLineAPI
Link copied to clipboard
val includeCommandLineAPI: Boolean? = null
Determines whether Command Line API should be available during the evaluation.
objectGroup
Link copied to clipboard
val objectGroup: String? = null
Symbolic group name that can be used to release multiple objects.
replMode
Link copied to clipboard
val replMode: Boolean? = null
Setting this flag to true enables let re-declaration and top-level await.
returnByValue
Link copied to clipboard
val returnByValue: Boolean? = null
Whether the result is expected to be a JSON object that should be sent by value.
silent
Link copied to clipboard
val silent: Boolean? = null
In silent mode exceptions thrown during evaluation are not reported and do not pause execution.
throwOnSideEffect
Link copied to clipboard
val throwOnSideEffect: Boolean? = null
Whether to throw an exception if side effect cannot be ruled out during evaluation.
timeout
Link copied to clipboard
val timeout: TimeDelta? = null
Terminate execution after timing out (number of milliseconds).
uniqueContextId
Link copied to clipboard
val uniqueContextId: String? = null
An alternative way to specify the execution context to evaluate in.
userGesture
Link copied to clipboard
val userGesture: Boolean? = null
Whether execution should be treated as initiated by user in the UI.

Sources

jvm source
Link copied to clipboard