Bun

interface

inspector.Runtime.EvaluateParameterType

interface EvaluateParameterType

  • awaitPromise?: boolean

    Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.

  • contextId?: number

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

  • expression: string

    Expression to evaluate.

  • generatePreview?: boolean

    Whether preview should be generated for the result.

  • includeCommandLineAPI?: boolean

    Determines whether Command Line API should be available during the evaluation.

  • objectGroup?: string

    Symbolic group name that can be used to release multiple objects.

  • returnByValue?: boolean

    Whether the result is expected to be a JSON object that should be sent by value.

  • silent?: boolean

    In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.

  • userGesture?: boolean

    Whether execution should be treated as initiated by user in the UI.