Available on crate feature
Runtime only.Expand description
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.
Structs§
- AddBinding
Command experimental - If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.
- AddBinding
Return experimental - If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.
- Await
Promise Command - Add handler to promise with given promise object id.
- Await
Promise Return - Add handler to promise with given promise object id.
- Binding
Called Event experimental - Notification is issued every time when binding is called.
- Call
Argument - Represents function call argument. Either remote object id
objectId, primitivevalue, unserializable primitive value or neither of (for undefined) them should be specified. - Call
Frame - Stack entry for runtime errors and assertions.
- Call
Frame Builder - Call
Function OnCommand - Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
- Call
Function OnCommand Builder - Call
Function OnReturn - Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
- Compile
Script Command - Compiles expression.
- Compile
Script Command Builder - Compile
Script Return - Compiles expression.
- Console
ApiCalled Event - Issued when console API was called.
- Console
ApiCalled Event Builder - Custom
Preview experimental - Disable
Command - Disables reporting of execution contexts creation.
- Disable
Return - Disables reporting of execution contexts creation.
- Discard
Console Entries Command - Discards collected exceptions and console API calls.
- Discard
Console Entries Return - Discards collected exceptions and console API calls.
- Enable
Command - Enables reporting of execution contexts creation by means of
executionContextCreatedevent. When the reporting gets enabled the event will be sent immediately for each existing execution context. - Enable
Return - Enables reporting of execution contexts creation by means of
executionContextCreatedevent. When the reporting gets enabled the event will be sent immediately for each existing execution context. - Entry
Preview experimental - Evaluate
Command - Evaluates expression on global object.
- Evaluate
Command Builder - Evaluate
Return - Evaluates expression on global object.
- Exception
Details - Detailed information about exception (or error) that was thrown during script compilation or execution.
- Exception
Details Builder - Exception
Revoked Event - Issued when unhandled exception was revoked.
- Exception
Thrown Event - Issued when exception was thrown and unhandled.
- Execution
Context Created Event - Issued when new execution context is created.
- Execution
Context Description - Description of an isolated world.
- Execution
Context Description AuxData - Execution
Context Description Builder - Execution
Context Destroyed Event - Issued when execution context is destroyed.
- Execution
Context Id - Id of an execution context.
- Execution
Contexts Cleared Event - Issued when all executionContexts were cleared in browser
- GetHeap
Usage Command experimental - Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
- GetHeap
Usage Return experimental - Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.
- GetIsolate
IdCommand experimental - Returns the isolate id.
- GetIsolate
IdReturn experimental - Returns the isolate id.
- GetProperties
Command - Returns properties of a given object. Object group of the result is inherited from the target object.
- GetProperties
Command Builder - GetProperties
Return - Returns properties of a given object. Object group of the result is inherited from the target object.
- GetProperties
Return Builder - Global
Lexical Scope Names Command - Returns all let, const and class variables from global scope.
- Global
Lexical Scope Names Return - Returns all let, const and class variables from global scope.
- Inspect
Requested Event - Issued when object should be inspected (for example, as a result of inspect() command line API call).
- Inspect
Requested Event Hints - Internal
Property Descriptor - Object internal property descriptor. This property isn’t normally visible in JavaScript code.
- Object
Preview experimental - Object containing abbreviated remote object value.
- Object
Preview Builder experimental - Private
Property Descriptor experimental - Object private field descriptor.
- Private
Property Descriptor Builder experimental - Property
Descriptor - Object property descriptor.
- Property
Descriptor Builder - Property
Preview experimental - Property
Preview Builder experimental - Query
Objects Command - Query
Objects Return - Release
Object Command - Releases remote object with given id.
- Release
Object Group Command - Releases all remote objects that belong to a given group.
- Release
Object Group Return - Releases all remote objects that belong to a given group.
- Release
Object Return - Releases remote object with given id.
- Remote
Object - Mirror object referencing original JavaScript object.
- Remote
Object Builder - Remote
Object Id - Unique object identifier.
- Remove
Binding Command experimental - This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.
- Remove
Binding Return experimental - This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.
- RunIf
Waiting ForDebugger Command - Tells inspected instance to run if it was waiting for debugger to attach.
- RunIf
Waiting ForDebugger Return - Tells inspected instance to run if it was waiting for debugger to attach.
- RunScript
Command - Runs script with given id in a given context.
- RunScript
Command Builder - RunScript
Return - Runs script with given id in a given context.
- Script
Id - Unique script identifier.
- SetAsync
Call Stack Depth Command - Enables or disables async call stacks tracking.
- SetAsync
Call Stack Depth Return - Enables or disables async call stacks tracking.
- SetCustom
Object Formatter Enabled Command experimental - SetCustom
Object Formatter Enabled Return experimental - SetMax
Call Stack Size ToCapture Command experimental - SetMax
Call Stack Size ToCapture Return experimental - Stack
Trace - Call frames for assertions or error messages.
- Stack
Trace Builder - Stack
Trace Id experimental - If
debuggerIdis set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. SeeRuntime.StackTraceandDebugger.pausedfor usages. - Terminate
Execution Command experimental - Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.
- Terminate
Execution Return experimental - Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.
- Time
Delta - Number of milliseconds.
- Timestamp
- Number of milliseconds since epoch.
- Unique
Debugger Id experimental - Unique identifier of current debugger.
- Unserializable
Value - Primitive value which cannot be JSON-stringified. Includes values
-0,NaN,Infinity,-Infinity, and bigint literals.