chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.runtime

Package org.hildan.chrome.devtools.domains.runtime

Types

AddBindingRequest

Request object containing input parameters for the RuntimeDomain.addBinding command.

data class AddBindingRequest

AwaitPromiseRequest

Request object containing input parameters for the RuntimeDomain.awaitPromise command.

data class AwaitPromiseRequest

AwaitPromiseResponse

Response type for the RuntimeDomain.awaitPromise command.

data class AwaitPromiseResponse

CallArgument

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

data class CallArgument

CallFrame

Stack entry for runtime errors and assertions.

data class CallFrame

CallFunctionOnRequest

Request object containing input parameters for the RuntimeDomain.callFunctionOn command.

data class CallFunctionOnRequest

CallFunctionOnResponse

Response type for the RuntimeDomain.callFunctionOn command.

data class CallFunctionOnResponse

CompileScriptRequest

Request object containing input parameters for the RuntimeDomain.compileScript command.

data class CompileScriptRequest

CompileScriptResponse

Response type for the RuntimeDomain.compileScript command.

data class CompileScriptResponse

CustomPreview

data class CustomPreview

EntryPreview

data class EntryPreview

EvaluateRequest

Request object containing input parameters for the RuntimeDomain.evaluate command.

data class EvaluateRequest

EvaluateResponse

Response type for the RuntimeDomain.evaluate command.

data class EvaluateResponse

ExceptionDetails

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

data class ExceptionDetails

ExecutionContextDescription

Description of an isolated world.

data class ExecutionContextDescription

ExecutionContextId

Id of an execution context.

typealias ExecutionContextId = Int

GetHeapUsageResponse

Response type for the RuntimeDomain.getHeapUsage command.

data class GetHeapUsageResponse

GetIsolateIdResponse

Response type for the RuntimeDomain.getIsolateId command.

data class GetIsolateIdResponse

GetPropertiesRequest

Request object containing input parameters for the RuntimeDomain.getProperties command.

data class GetPropertiesRequest

GetPropertiesResponse

Response type for the RuntimeDomain.getProperties command.

data class GetPropertiesResponse

GlobalLexicalScopeNamesRequest

Request object containing input parameters for the RuntimeDomain.globalLexicalScopeNames command.

data class GlobalLexicalScopeNamesRequest

GlobalLexicalScopeNamesResponse

Response type for the RuntimeDomain.globalLexicalScopeNames command.

data class GlobalLexicalScopeNamesResponse

InternalPropertyDescriptor

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

data class InternalPropertyDescriptor

ObjectPreview

Object containing abbreviated remote object value.

data class ObjectPreview

PrivatePropertyDescriptor

Object private field descriptor.

data class PrivatePropertyDescriptor

PropertyDescriptor

Object property descriptor.

data class PropertyDescriptor

PropertyPreview

data class PropertyPreview

QueryObjectsRequest

Request object containing input parameters for the RuntimeDomain.queryObjects command.

data class QueryObjectsRequest

QueryObjectsResponse

Response type for the RuntimeDomain.queryObjects command.

data class QueryObjectsResponse

ReleaseObjectGroupRequest

Request object containing input parameters for the RuntimeDomain.releaseObjectGroup command.

data class ReleaseObjectGroupRequest

ReleaseObjectRequest

Request object containing input parameters for the RuntimeDomain.releaseObject command.

data class ReleaseObjectRequest

RemoteObject

Mirror object referencing original JavaScript object.

data class RemoteObject

RemoteObjectId

Unique object identifier.

typealias RemoteObjectId = String

RemoveBindingRequest

Request object containing input parameters for the RuntimeDomain.removeBinding command.

data class RemoveBindingRequest

RunScriptRequest

Request object containing input parameters for the RuntimeDomain.runScript command.

data class RunScriptRequest

RunScriptResponse

Response type for the RuntimeDomain.runScript command.

data class RunScriptResponse

RuntimeDomain

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.

class RuntimeDomain

ScriptId

Unique script identifier.

typealias ScriptId = String

SetAsyncCallStackDepthRequest

Request object containing input parameters for the RuntimeDomain.setAsyncCallStackDepth command.

data class SetAsyncCallStackDepthRequest

SetCustomObjectFormatterEnabledRequest

Request object containing input parameters for the RuntimeDomain.setCustomObjectFormatterEnabled command.

data class SetCustomObjectFormatterEnabledRequest

SetMaxCallStackSizeToCaptureRequest

Request object containing input parameters for the RuntimeDomain.setMaxCallStackSizeToCapture command.

data class SetMaxCallStackSizeToCaptureRequest

StackTrace

Call frames for assertions or error messages.

data class StackTrace

StackTraceId

If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages.

data class StackTraceId

TimeDelta

Number of milliseconds.

typealias TimeDelta = Double

Timestamp

Number of milliseconds since epoch.

typealias Timestamp = Double

UniqueDebuggerId

Unique identifier of current debugger.

typealias UniqueDebuggerId = String

UnserializableValue

Primitive value which cannot be JSON-stringified. Includes values -0, NaN, Infinity, -Infinity, and bigint literals.

typealias UnserializableValue = String

Exceptions

RuntimeJSEvaluationException

class RuntimeJSEvaluationException : Exception

Functions

evaluateJs

suspend fun <T> RuntimeDomain.evaluateJs(js: String): T?
suspend fun <T> RuntimeDomain.evaluateJs(js: String, deserializer: DeserializationStrategy<T>): T?