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
-
Evaluates expression on global object.
-
Add handler to promise with given promise object id.
-
Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
-
Returns properties of a given object. Object group of the result is inherited from the target object.
-
Releases remote object with given id.
-
Releases all remote objects that belong to a given group.
Runtime.runIfWaitingForDebugger
Tells inspected instance to run if it was waiting for debugger to attach.
-
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. -
Disables reporting of execution contexts creation.
-
Discards collected exceptions and console API calls.
Runtime.setCustomObjectFormatterEnabled
Experimental-
Compiles expression.
-
Runs script with given id in a given context.
Runtime.queryObjects
Experimental
Events
Runtime.executionContextCreated
Issued when new execution context is created.
Runtime.executionContextDestroyed
Issued when execution context is destroyed.
Runtime.executionContextsCleared
Issued when all executionContexts were cleared in browser
-
Issued when exception was thrown and unhandled.
-
Issued when unhandled exception was revoked.
-
Issued when console API was called.
-
Issued when object should be inspected (for example, as a result of inspect() command line API call).
Types
-
Unique script identifier.
-
Unique object identifier.
-
Primitive value which cannot be JSON-stringified.
-
Mirror object referencing original JavaScript object.
CustomPreview
ExperimentalObjectPreview
ExperimentalObject containing abbreviated remote object value.
PropertyPreview
ExperimentalEntryPreview
Experimental-
Object property descriptor.
-
Object internal property descriptor. This property isn't normally visible in JavaScript code.
-
Represents function call argument. Either remote object id
objectId
, primitivevalue
, unserializable primitive value or neither of (for undefined) them should be specified. -
Id of an execution context.
-
Description of an isolated world.
-
Detailed information about exception (or error) that was thrown during script compilation or execution.
-
Number of milliseconds since epoch.
-
Stack entry for runtime errors and assertions.
-
Call frames for assertions or error messages.
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 |
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 |
EnableResponse |
Enables reporting of execution contexts creation by means of |
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 |
ObjectPreviewSubtype |
[Experimental] |
ObjectPreviewType |
[Experimental] |
PropertyPreviewSubtype |
[Experimental] |
PropertyPreviewType |
[Experimental] |
RemoteObjectSubtype |
Used in the type of |
RemoteObjectType |
Used in the type of |
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. |