| OLD | NEW |
| 1 { | 1 { |
| 2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
| 3 "domains": [{ | 3 "domains": [{ |
| 4 "domain": "Runtime", | 4 "domain": "Runtime", |
| 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", | 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", |
| 6 "types": [ | 6 "types": [ |
| 7 { | 7 { |
| 8 "id": "ScriptId", | 8 "id": "ScriptId", |
| 9 "type": "string", | 9 "type": "string", |
| 10 "description": "Unique script identifier." | 10 "description": "Unique script identifier." |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 ], | 208 ], |
| 209 "returns": [ | 209 "returns": [ |
| 210 { "name": "result", "$ref": "RemoteObject", "description": "
Promise result. Will contain rejected value if promise was rejected." }, | 210 { "name": "result", "$ref": "RemoteObject", "description": "
Promise result. Will contain rejected value if promise was rejected." }, |
| 211 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the promise was rejected." }, | 211 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the promise was rejected." }, |
| 212 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details if stack strace is available."
} | 212 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details if stack strace is available."
} |
| 213 ], | 213 ], |
| 214 "description": "Add handler to promise with given promise object
id." | 214 "description": "Add handler to promise with given promise object
id." |
| 215 }, | 215 }, |
| 216 { | 216 { |
| 217 "name": "callFunctionOn", | 217 "name": "callFunctionOn", |
| 218 "async": true, |
| 218 "parameters": [ | 219 "parameters": [ |
| 219 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, | 220 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, |
| 220 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, | 221 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, |
| 221 { "name": "arguments", "type": "array", "items": { "$ref": "
CallArgument", "description": "Call argument." }, "optional": true, "description
": "Call arguments. All call arguments must belong to the same JavaScript world
as the target object." }, | 222 { "name": "arguments", "type": "array", "items": { "$ref": "
CallArgument", "description": "Call argument." }, "optional": true, "description
": "Call arguments. All call arguments must belong to the same JavaScript world
as the target object." }, |
| 222 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether function call shoul
d stop on exceptions and mute console. Overrides setPauseOnException state.", "h
idden": true }, | 223 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether function call shoul
d stop on exceptions and mute console. Overrides setPauseOnException state.", "h
idden": true }, |
| 223 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, | 224 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
| 224 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, | 225 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." }, |
| 225 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." } | 226 { "name": "userGesture", "type": "boolean", "optional": true
, "hidden": true, "description": "Whether execution should be treated as initiat
ed by user in the UI." }, |
| 227 { "name": "awaitPromise", "type": "boolean", "optional":true
, "hidden": true, "description": "Whether execution should wait for promise to b
e resolved. If the result of evaluation is not a Promise, it's considered to be
an error." } |
| 226 ], | 228 ], |
| 227 "returns": [ | 229 "returns": [ |
| 228 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, | 230 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, |
| 229 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } | 231 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." }, |
| 232 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "hidden": true, "description": "Exception details."} |
| 230 ], | 233 ], |
| 231 "description": "Calls function with given declaration on the giv
en object. Object group of the result is inherited from the target object." | 234 "description": "Calls function with given declaration on the giv
en object. Object group of the result is inherited from the target object." |
| 232 }, | 235 }, |
| 233 { | 236 { |
| 234 "name": "getProperties", | 237 "name": "getProperties", |
| 235 "parameters": [ | 238 "parameters": [ |
| 236 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return properties for." }, | 239 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return properties for." }, |
| 237 { "name": "ownProperties", "optional": true, "type": "boolea
n", "description": "If true, returns properties belonging only to the element it
self, not to its prototype chain." }, | 240 { "name": "ownProperties", "optional": true, "type": "boolea
n", "description": "If true, returns properties belonging only to the element it
self, not to its prototype chain." }, |
| 238 { "name": "accessorPropertiesOnly", "optional": true, "type"
: "boolean", "description": "If true, returns accessor properties (with getter/s
etter) only; internal properties are not returned either.", "hidden": true }, | 241 { "name": "accessorPropertiesOnly", "optional": true, "type"
: "boolean", "description": "If true, returns accessor properties (with getter/s
etter) only; internal properties are not returned either.", "hidden": true }, |
| 239 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e results." } | 242 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e results." } |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 { | 1005 { |
| 1003 "name": "heapStatsUpdate", | 1006 "name": "heapStatsUpdate", |
| 1004 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1007 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
| 1005 "parameters": [ | 1008 "parameters": [ |
| 1006 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} | 1009 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} |
| 1007 ] | 1010 ] |
| 1008 } | 1011 } |
| 1009 ] | 1012 ] |
| 1010 }] | 1013 }] |
| 1011 } | 1014 } |
| OLD | NEW |