Module chrome_remote_interface_model::runtime[][src]

This is supported 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

AddBindingCommandexperimental

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.

AddBindingReturnexperimental

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.

Add handler to promise with given promise object id.

Add handler to promise with given promise object id.

BindingCalledEventexperimental

Notification is issued every time when binding is called.

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

Stack entry for runtime errors and assertions.

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

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

Compiles expression.

Compiles expression.

Issued when console API was called.

CustomPreviewexperimental

Disables reporting of execution contexts creation.

Disables reporting of execution contexts creation.

Discards collected exceptions and console API calls.

Discards collected exceptions and console API calls.

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.

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.

EntryPreviewexperimental

Evaluates expression on global object.

Evaluates expression on global object.

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

Issued when unhandled exception was revoked.

Issued when exception was thrown and unhandled.

Issued when new execution context is created.

Description of an isolated world.

Issued when execution context is destroyed.

Id of an execution context.

Issued when all executionContexts were cleared in browser

Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

GetHeapUsageReturnexperimental

Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

Returns the isolate id.

GetIsolateIdReturnexperimental

Returns the isolate id.

Returns properties of a 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.

Returns all let, const and class variables from global scope.

Returns all let, const and class variables from global scope.

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

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

ObjectPreviewexperimental

Object containing abbreviated remote object value.

Object private field descriptor.

Object property descriptor.

PropertyPreviewexperimental

Releases remote object with given id.

Releases all remote objects that belong to a given group.

Releases all remote objects that belong to a given group.

Releases remote object with given id.

Mirror object referencing original JavaScript object.

Unique object identifier.

This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.

This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications.

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

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

Runs script with given id in a given context.

Runs script with given id in a given context.

Unique script identifier.

Enables or disables async call stacks tracking.

Enables or disables async call stacks tracking.

Call frames for assertions or error messages.

StackTraceIdexperimental

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.

Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.

Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends.

Number of milliseconds.

Number of milliseconds since epoch.

UniqueDebuggerIdexperimental

Unique identifier of current debugger.

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

Enums