Module cdp::runtime [] [src]

Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.

Runtime

Commands

Events

Types

Structs

AwaitPromiseCommand

Add handler to promise with given promise object id.

AwaitPromiseResponse

Add handler to promise with given promise object id.

CallArgument

Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified.

CallFrame

Stack entry for runtime errors and assertions.

CallFunctionOnCommand

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

CallFunctionOnResponse

Calls function with given declaration on the given object. Object group of the result is inherited from the target object.

CompileScriptCommand

Compiles expression.

CompileScriptResponse

Compiles expression.

ConsoleApiCalledEvent

Issued when console API was called.

CustomPreview

[Experimental]

DisableCommand

Disables reporting of execution contexts creation.

DisableResponse

Disables reporting of execution contexts creation.

DiscardConsoleEntriesCommand

Discards collected exceptions and console API calls.

DiscardConsoleEntriesResponse

Discards collected exceptions and console API calls.

EnableCommand

Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context.

EnableResponse

Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context.

EntryPreview

[Experimental]

EvaluateCommand

Evaluates expression on global object.

EvaluateResponse

Evaluates expression on global object.

ExceptionDetails

Detailed information about exception (or error) that was thrown during script compilation or execution.

ExceptionRevokedEvent

Issued when unhandled exception was revoked.

ExceptionThrownEvent

Issued when exception was thrown and unhandled.

ExecutionContextCreatedEvent

Issued when new execution context is created.

ExecutionContextDescription

Description of an isolated world.

ExecutionContextDestroyedEvent

Issued when execution context is destroyed.

ExecutionContextsClearedEvent

Issued when all executionContexts were cleared in browser

GetPropertiesCommand

Returns properties of a given object. Object group of the result is inherited from the target object.

GetPropertiesResponse

Returns properties of a given object. Object group of the result is inherited from the target object.

InspectRequestedEvent

Issued when object should be inspected (for example, as a result of inspect() command line API call).

InternalPropertyDescriptor

Object internal property descriptor. This property isn't normally visible in JavaScript code.

ObjectPreview

[Experimental] Object containing abbreviated remote object value.

PropertyDescriptor

Object property descriptor.

PropertyPreview

[Experimental]

QueryObjectsCommand

[Experimental]

QueryObjectsResponse

[Experimental]

ReleaseObjectCommand

Releases remote object with given id.

ReleaseObjectGroupCommand

Releases all remote objects that belong to a given group.

ReleaseObjectGroupResponse

Releases all remote objects that belong to a given group.

ReleaseObjectResponse

Releases remote object with given id.

RemoteObject

Mirror object referencing original JavaScript object.

RunIfWaitingForDebuggerCommand

Tells inspected instance to run if it was waiting for debugger to attach.

RunIfWaitingForDebuggerResponse

Tells inspected instance to run if it was waiting for debugger to attach.

RunScriptCommand

Runs script with given id in a given context.

RunScriptResponse

Runs script with given id in a given context.

SetCustomObjectFormatterEnabledCommand

[Experimental]

SetCustomObjectFormatterEnabledResponse

[Experimental]

StackTrace

Call frames for assertions or error messages.

Enums

ConsoleApiCalledEventType

Used in the type of cdp::runtime::ConsoleApiCalledEvent::ty.

ObjectPreviewSubtype

[Experimental]

ObjectPreviewType

[Experimental]

PropertyPreviewSubtype

[Experimental]

PropertyPreviewType

[Experimental]

RemoteObjectSubtype

Used in the type of cdp::runtime::RemoteObject::subtype.

RemoteObjectType

Used in the type of cdp::runtime::RemoteObject::ty.

UnserializableValue

Primitive value which cannot be JSON-stringified.

Type Definitions

ExecutionContextId

Id of an execution context.

RemoteObjectId

Unique object identifier.

ScriptId

Unique script identifier.

Timestamp

Number of milliseconds since epoch.