1408 строки
21 KiB
HTML
1408 строки
21 KiB
HTML
{{+bindTo:partials.standard_devtools_article}}
|
|
<h1>tot: Runtime</h1>
|
|
<div>
|
|
<!-- TABLE OF CONTENTS -->
|
|
<div id="toc">
|
|
<div class="collapsible">
|
|
<h2>Contents</h2>
|
|
<ol>
|
|
|
|
<li>
|
|
<a href='#commands'">Commands</a>
|
|
<ol>
|
|
|
|
<li>
|
|
<a href="#command-callFunctionOn" href="#command-anchor">callFunctionOn</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#command-enable" href="#command-anchor">enable</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#command-evaluate" href="#command-anchor">evaluate</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#command-getProperties" href="#command-anchor">getProperties</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#command-releaseObject" href="#command-anchor">releaseObject</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#command-releaseObjectGroup" href="#command-anchor">releaseObjectGroup</a>
|
|
</li>
|
|
|
|
</ol>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href='#events'">Notifications</a>
|
|
<ol>
|
|
|
|
<li>
|
|
<a href="#event-executionContextCreated" href="#command-anchor">executionContextCreated</a>
|
|
</li>
|
|
|
|
</ol>
|
|
</li>
|
|
</li>
|
|
|
|
|
|
<li>
|
|
<a href="#types">Types</a>
|
|
<ol>
|
|
|
|
<li>
|
|
<a href="#type-CallArgument">CallArgument</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#type-ExecutionContextDescription">ExecutionContextDescription</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#type-ExecutionContextId">ExecutionContextId</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#type-PropertyDescriptor">PropertyDescriptor</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#type-RemoteObject">RemoteObject</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#type-RemoteObjectId">RemoteObjectId</a>
|
|
</li>
|
|
|
|
</ol>
|
|
</li>
|
|
|
|
</ol>
|
|
</div><!-- /TABLE OF CONTENTS -->
|
|
<!-- API PAGE -->
|
|
<div>
|
|
|
|
<p>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.</p>
|
|
|
|
<!-- COMMANDS -->
|
|
|
|
<div class="protocol-group">
|
|
<a name="commands"></a>
|
|
<h3>Commands</h3>
|
|
|
|
<div class="protocol-item">
|
|
<a name="command-callFunctionOn"></a>
|
|
<h4>Runtime.callFunctionOn</h4>
|
|
<div class="summary">
|
|
<!-- REQUEST -->
|
|
request: {<br>
|
|
"id": <number>,<br>
|
|
"method": "Runtime.callFunctionOn",<br>
|
|
|
|
"params": {<br>
|
|
|
|
"<span class="specific">objectId</span>": <<a href="#type-RemoteObjectId">RemoteObjectId</a>>,<br>
|
|
|
|
"<span class="specific">functionDeclaration</span>": <string>,<br>
|
|
|
|
"<span class="specific">arguments</span>": <array of <a href="#type-CallArgument">CallArgument</a>>,<br>
|
|
|
|
"<span class="specific">returnByValue</span>": <boolean><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
<!-- RESPONSE -->
|
|
response: {<br>
|
|
"id": <number>,<br>
|
|
"error": <object>,<br>
|
|
|
|
"result": {<br>
|
|
|
|
"<span class="specific">result</span>": <<a href="#type-RemoteObject">RemoteObject</a>>,<br>
|
|
|
|
"<span class="specific">wasThrown</span>": <boolean><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
|
|
<p>Calls function with given declaration on the given object. Object group of the result is inherited from the target object.</p>
|
|
|
|
|
|
<!-- PARAMETERS -->
|
|
<h4>Parameters</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-RemoteObjectId">RemoteObjectId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Identifier of the object to call function on.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
functionDeclaration
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Declaration of the function to call.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
arguments
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
array of <a href="#type-CallArgument">CallArgument</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Call arguments. All call arguments must belong to the same JavaScript world as the target object.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
returnByValue
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Whether the result is expected to be a JSON object which should be sent by value.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- RETURNS -->
|
|
<h4>Returns</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
result
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-RemoteObject">RemoteObject</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Call result.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
wasThrown
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
True if the result was thrown during the evaluation.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="command-enable"></a>
|
|
<h4>Runtime.enable</h4>
|
|
<div class="summary">
|
|
<!-- REQUEST -->
|
|
request: {<br>
|
|
"id": <number>,<br>
|
|
"method": "Runtime.enable"
|
|
|
|
<div>}</div>
|
|
<!-- RESPONSE -->
|
|
response: {<br>
|
|
"id": <number>,<br>
|
|
"error": <object>
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
|
|
<p>Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.</p>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="command-evaluate"></a>
|
|
<h4>Runtime.evaluate</h4>
|
|
<div class="summary">
|
|
<!-- REQUEST -->
|
|
request: {<br>
|
|
"id": <number>,<br>
|
|
"method": "Runtime.evaluate",<br>
|
|
|
|
"params": {<br>
|
|
|
|
"<span class="specific">expression</span>": <string>,<br>
|
|
|
|
"<span class="specific">objectGroup</span>": <string>,<br>
|
|
|
|
"<span class="specific">contextId</span>": <<a href="runtime.html#type-ExecutionContextId">Runtime.ExecutionContextId</a>>,<br>
|
|
|
|
"<span class="specific">returnByValue</span>": <boolean><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
<!-- RESPONSE -->
|
|
response: {<br>
|
|
"id": <number>,<br>
|
|
"error": <object>,<br>
|
|
|
|
"result": {<br>
|
|
|
|
"<span class="specific">result</span>": <<a href="#type-RemoteObject">RemoteObject</a>>,<br>
|
|
|
|
"<span class="specific">wasThrown</span>": <boolean><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
|
|
<p>Evaluates expression on global object.</p>
|
|
|
|
|
|
<!-- PARAMETERS -->
|
|
<h4>Parameters</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
expression
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Expression to evaluate.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectGroup
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Symbolic group name that can be used to release multiple objects.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
contextId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
<a href="runtime.html#type-ExecutionContextId">Runtime.ExecutionContextId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
returnByValue
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Whether the result is expected to be a JSON object that should be sent by value.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- RETURNS -->
|
|
<h4>Returns</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
result
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-RemoteObject">RemoteObject</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Evaluation result.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
wasThrown
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
True if the result was thrown during the evaluation.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="command-getProperties"></a>
|
|
<h4>Runtime.getProperties</h4>
|
|
<div class="summary">
|
|
<!-- REQUEST -->
|
|
request: {<br>
|
|
"id": <number>,<br>
|
|
"method": "Runtime.getProperties",<br>
|
|
|
|
"params": {<br>
|
|
|
|
"<span class="specific">objectId</span>": <<a href="#type-RemoteObjectId">RemoteObjectId</a>>,<br>
|
|
|
|
"<span class="specific">ownProperties</span>": <boolean><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
<!-- RESPONSE -->
|
|
response: {<br>
|
|
"id": <number>,<br>
|
|
"error": <object>,<br>
|
|
|
|
"result": {<br>
|
|
|
|
"<span class="specific">result</span>": <array of <a href="#type-PropertyDescriptor">PropertyDescriptor</a>><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
|
|
<p>Returns properties of a given object. Object group of the result is inherited from the target object.</p>
|
|
|
|
|
|
<!-- PARAMETERS -->
|
|
<h4>Parameters</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-RemoteObjectId">RemoteObjectId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Identifier of the object to return properties for.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
ownProperties
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
If true, returns properties belonging only to the element itself, not to its prototype chain.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<!-- RETURNS -->
|
|
<h4>Returns</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
result
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
array of <a href="#type-PropertyDescriptor">PropertyDescriptor</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Object properties.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="command-releaseObject"></a>
|
|
<h4>Runtime.releaseObject</h4>
|
|
<div class="summary">
|
|
<!-- REQUEST -->
|
|
request: {<br>
|
|
"id": <number>,<br>
|
|
"method": "Runtime.releaseObject",<br>
|
|
|
|
"params": {<br>
|
|
|
|
"<span class="specific">objectId</span>": <<a href="#type-RemoteObjectId">RemoteObjectId</a>><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
<!-- RESPONSE -->
|
|
response: {<br>
|
|
"id": <number>,<br>
|
|
"error": <object>
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
|
|
<p>Releases remote object with given id.</p>
|
|
|
|
|
|
<!-- PARAMETERS -->
|
|
<h4>Parameters</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-RemoteObjectId">RemoteObjectId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Identifier of the object to release.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="command-releaseObjectGroup"></a>
|
|
<h4>Runtime.releaseObjectGroup</h4>
|
|
<div class="summary">
|
|
<!-- REQUEST -->
|
|
request: {<br>
|
|
"id": <number>,<br>
|
|
"method": "Runtime.releaseObjectGroup",<br>
|
|
|
|
"params": {<br>
|
|
|
|
"<span class="specific">objectGroup</span>": <string><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
<!-- RESPONSE -->
|
|
response: {<br>
|
|
"id": <number>,<br>
|
|
"error": <object>
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
|
|
<p>Releases all remote objects that belong to a given group.</p>
|
|
|
|
|
|
<!-- PARAMETERS -->
|
|
<h4>Parameters</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectGroup
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Symbolic object group name.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<!-- for commands -->
|
|
</div>
|
|
<!-- if commands -->
|
|
<!-- EVENTS -->
|
|
|
|
<div class="protocol-group">
|
|
<a name="events"></a>
|
|
<h3>Notifications</h3>
|
|
|
|
<div class="protocol-item">
|
|
<a name="event-executionContextCreated"></a>
|
|
<h4>Runtime.executionContextCreated</h4>
|
|
<div class="summary">
|
|
{<br>
|
|
"method": "Runtime.executionContextCreated",<br>
|
|
|
|
"params": {<br>
|
|
|
|
<span class="specific">"context"</span>: <<a href="#type-ExecutionContextDescription">ExecutionContextDescription</a>><br>
|
|
|
|
}
|
|
|
|
<div>}</div>
|
|
</div>
|
|
<div class="description">
|
|
<p>Issued when new execution context is created.</p>
|
|
|
|
<!-- PARAMETERS -->
|
|
<h4>Parameters</h4>
|
|
<div class="parameters">
|
|
|
|
<div><span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
context
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-ExecutionContextDescription">ExecutionContextDescription</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
A newly created execution contex.
|
|
|
|
</div>
|
|
</span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- for events -->
|
|
</div>
|
|
<!-- if events -->
|
|
<!-- TYPES -->
|
|
|
|
<a name="types" id="types"></a>
|
|
<h3 id="types">Types</h3>
|
|
|
|
<div class="protocol-item">
|
|
<a name="type-CallArgument"></a>
|
|
<h4>CallArgument: <var>object</var></h4>
|
|
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
<a href="#type-RemoteObjectId">RemoteObjectId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Remote object handle.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
value
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
any
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Primitive value.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="type-ExecutionContextDescription"></a>
|
|
<h4>ExecutionContextDescription: <var>object</var></h4>
|
|
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
frameId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="page.html#type-FrameId">Page.FrameId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Id of the owning frame.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
id
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
<a href="#type-ExecutionContextId">ExecutionContextId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="type-ExecutionContextId"></a>
|
|
<h4>ExecutionContextId: <var>integer</var></h4>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="type-PropertyDescriptor"></a>
|
|
<h4>PropertyDescriptor: <var>object</var></h4>
|
|
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
configurable
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
enumerable
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
True if this property shows up during enumeration of the properties on the corresponding object.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
get
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
<a href="#type-RemoteObject">RemoteObject</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
name
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Property name.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
set
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
<a href="#type-RemoteObject">RemoteObject</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
value
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
<a href="#type-RemoteObject">RemoteObject</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
The value associated with the property.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
wasThrown
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
True if the result was thrown during the evaluation.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
writable
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
boolean
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
True if the value associated with the property may be changed (data descriptors only).
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="type-RemoteObject"></a>
|
|
<h4>RemoteObject: <var>object</var></h4>
|
|
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
className
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Object class (constructor) name. Specified for <code>object</code> type values only.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
description
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
string
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
String representation of the object.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
objectId
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
<a href="#type-RemoteObjectId">RemoteObjectId</a>
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Unique object identifier (for non-primitive values).
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
subtype
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
<span>enumerated</span>
|
|
string
|
|
|
|
[
|
|
|
|
"array"
|
|
,
|
|
|
|
"date"
|
|
,
|
|
|
|
"node"
|
|
,
|
|
|
|
"null"
|
|
,
|
|
|
|
"regexp"
|
|
|
|
|
|
]
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Object subtype hint. Specified for <code>object</code> type values only.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
type
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
|
|
<span>enumerated</span>
|
|
string
|
|
|
|
[
|
|
|
|
"boolean"
|
|
,
|
|
|
|
"function"
|
|
,
|
|
|
|
"number"
|
|
,
|
|
|
|
"object"
|
|
,
|
|
|
|
"string"
|
|
,
|
|
|
|
"undefined"
|
|
|
|
|
|
]
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Object type.
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="property">
|
|
<span class="value">
|
|
<strong>
|
|
<var>
|
|
|
|
value
|
|
|
|
<!-- TYPE -->
|
|
<div style="display:inline">
|
|
(
|
|
<span class="optional">optional</span>
|
|
|
|
any
|
|
|
|
)
|
|
</div>
|
|
</var>
|
|
</strong>
|
|
<div class="description">
|
|
Remote object value (in case of primitive values or JSON values if it was requested).
|
|
|
|
</div>
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="protocol-item">
|
|
<a name="type-RemoteObjectId"></a>
|
|
<h4>RemoteObjectId: <var>string</var></h4>
|
|
|
|
|
|
</div>
|
|
<!-- for types -->
|
|
</div>
|
|
<!-- if types -->
|
|
</div><!-- API PAGE -->
|
|
</div>
|
|
</div>
|
|
{{/partials.standard_devtools_article}}
|