devtools-protocol

Runtime

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.

TypesScriptId, CallArgument, ExecutionContextId, RemoteObject

Methods

Events

Types

ScriptId string

Unique script identifier.


CallArgument object

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

Properties
value
optional
any Primitive value or serializable javascript object.
unserializableValue
optional
UnserializableValue Primitive value which can not be JSON-stringified.
objectId
optional
RemoteObjectId Remote object handle.

ExecutionContextId integer

Id of an execution context.


RemoteObject object

Mirror object referencing original JavaScript object.

Properties
type string
Allowed values: object, function, undefined, string, number, boolean, symbol
Object type.
subtype
optional
string
Allowed values: null, error, promise, node
Object subtype hint. Specified for object type values only.
className
optional
string Object class (constructor) name. Specified for object type values only.
value
optional
any Remote object value in case of primitive values or JSON values (if it was requested).
unserializableValue
optional
UnserializableValue Primitive value which can not be JSON-stringified does not have value, but gets this property.
description
optional
string String representation of the object.
objectId
optional
RemoteObjectId Unique object identifier (for non-primitive values).

Dependencies