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§
- 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
- 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
- Add handler to promise with given promise object id. awaitPromise
- Add handler to promise with given promise object id. awaitPromise
- Represents function call argument. Either remote object id
objectId
, primitivevalue
, unserializable primitive value or neither of (for undefined) them should be specified. CallArgument - Stack entry for runtime errors and assertions. CallFrame
- Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn
- Calls function with given declaration on the given object. Object group of the result is inherited from the target object. callFunctionOn
- Compiles expression. compileScript
- Compiles expression. compileScript
- Represents deep serialized value. DeepSerializedValue
- Disables reporting of execution contexts creation. disable
- Disables reporting of execution contexts creation. disable
- Discards collected exceptions and console API calls. discardConsoleEntries
- Discards collected exceptions and console API calls. discardConsoleEntries
- 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. enable - 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. enable - Evaluates expression on global object. evaluate
- Evaluates expression on global object. evaluate
- Notification is issued every time when binding is called. bindingCalled
- Issued when console API was called. consoleAPICalled
- Issued when unhandled exception was revoked. exceptionRevoked
- Issued when exception was thrown and unhandled. exceptionThrown
- Issued when new execution context is created. executionContextCreated
- Issued when execution context is destroyed. executionContextDestroyed
- Issued when all executionContexts were cleared in browser executionContextsCleared
- Issued when object should be inspected (for example, as a result of inspect() command line API call). inspectRequested
- Detailed information about exception (or error) that was thrown during script compilation or execution. ExceptionDetails
- Description of an isolated world. ExecutionContextDescription
- Id of an execution context. ExecutionContextId
- This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown. getExceptionDetails
- This method tries to lookup and populate exception details for a JavaScript Error object. Note that the stackTrace portion of the resulting exceptionDetails will only be populated if the Runtime domain was enabled at the time when the Error was thrown. getExceptionDetails
- Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime. getHeapUsage
- Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime. getHeapUsage
- Returns the isolate id. getIsolateId
- Returns the isolate id. getIsolateId
- Returns properties of a given object. Object group of the result is inherited from the target object. getProperties
- Returns properties of a given object. Object group of the result is inherited from the target object. getProperties
- Returns all let, const and class variables from global scope. globalLexicalScopeNames
- Returns all let, const and class variables from global scope. globalLexicalScopeNames
- Object internal property descriptor. This property isn’t normally visible in JavaScript code. InternalPropertyDescriptor
- Object containing abbreviated remote object value. ObjectPreview
- Object private field descriptor. PrivatePropertyDescriptor
- Object property descriptor. PropertyDescriptor
- Releases all remote objects that belong to a given group. releaseObjectGroup
- Releases all remote objects that belong to a given group. releaseObjectGroup
- Releases remote object with given id. releaseObject
- Releases remote object with given id. releaseObject
- Mirror object referencing original JavaScript object. RemoteObject
- Unique object identifier. RemoteObjectId
- This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications. removeBinding
- This method does not remove binding function from global object but unsubscribes current runtime agent from Runtime.bindingCalled notifications. removeBinding
- Tells inspected instance to run if it was waiting for debugger to attach. runIfWaitingForDebugger
- Tells inspected instance to run if it was waiting for debugger to attach. runIfWaitingForDebugger
- Runs script with given id in a given context. runScript
- Runs script with given id in a given context. runScript
- Unique script identifier. ScriptId
- Represents options for serialization. Overrides
generatePreview
andreturnByValue
. SerializationOptions - Enables or disables async call stacks tracking. setAsyncCallStackDepth
- Enables or disables async call stacks tracking. setAsyncCallStackDepth
- Call frames for assertions or error messages. StackTrace
- If
debuggerId
is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. SeeRuntime.StackTrace
andDebugger.paused
for usages. StackTraceId - Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends. terminateExecution
- Terminate current or next JavaScript execution. Will cancel the termination when the outer-most script execution ends. terminateExecution
- Number of milliseconds. TimeDelta
- Number of milliseconds since epoch. Timestamp
- Unique identifier of current debugger. UniqueDebuggerId
- Primitive value which cannot be JSON-stringified. Includes values
-0
,NaN
,Infinity
,-Infinity
, and bigint literals. UnserializableValue
Enums§
- Type of the call.
- Object subtype hint. Specified for
object
type values only. - Object type.
- Object subtype hint. Specified for
object
type values only. - Object type. Accessor means that the property itself is an accessor property.
- Object subtype hint. Specified for
object
type values only. NOTE: If you change anything here, make sure to also updatesubtype
inObjectPreview
andPropertyPreview
below. - Object type.