mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
6.8 KiB
6.8 KiB
Home > puppeteer > Protocol > Runtime
Protocol.Runtime namespace
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.
Signature:
export namespace Runtime
Interfaces
Interface | Description |
---|---|
AddBindingRequest | |
AwaitPromiseRequest | |
AwaitPromiseResponse | |
BindingCalledEvent | Notification is issued every time when binding is called. |
CallArgument | Represents function call argument. Either remote object id objectId , primitive value , unserializable primitive value or neither of (for undefined) them should be specified. |
CallFrame | Stack entry for runtime errors and assertions. |
CallFunctionOnRequest | |
CallFunctionOnResponse | |
CompileScriptRequest | |
CompileScriptResponse | |
ConsoleAPICalledEvent | Issued when console API was called. |
CustomPreview | |
EntryPreview | |
EvaluateRequest | |
EvaluateResponse | |
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. |
GetHeapUsageResponse | |
GetIsolateIdResponse | |
GetPropertiesRequest | |
GetPropertiesResponse | |
GlobalLexicalScopeNamesRequest | |
GlobalLexicalScopeNamesResponse | |
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 | Object containing abbreviated remote object value. |
PrivatePropertyDescriptor | Object private field descriptor. |
PropertyDescriptor | Object property descriptor. |
PropertyPreview | |
QueryObjectsRequest | |
QueryObjectsResponse | |
ReleaseObjectGroupRequest | |
ReleaseObjectRequest | |
RemoteObject | Mirror object referencing original JavaScript object. |
RemoveBindingRequest | |
RunScriptRequest | |
RunScriptResponse | |
SetAsyncCallStackDepthRequest | |
SetCustomObjectFormatterEnabledRequest | |
SetMaxCallStackSizeToCaptureRequest | |
StackTrace | Call frames for assertions or error messages. |
StackTraceId | 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. |
Type Aliases
Type Alias | Description |
---|---|
ExecutionContextId | Id of an execution context. |
RemoteObjectId | Unique object identifier. |
ScriptId | Unique script identifier. |
TimeDelta | Number of milliseconds. |
Timestamp | Number of milliseconds since epoch. |
UniqueDebuggerId | Unique identifier of current debugger. |
UnserializableValue | Primitive value which cannot be JSON-stringified. Includes values -0 , NaN , Infinity , -Infinity , and bigint literals. |