Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json

Issue 2234983002: [DevTools] Removed wasThrown from evaluate-like protocol methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "experimental": true }, 191 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "experimental": true },
192 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "expe rimental": true }, 192 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "expe rimental": true },
193 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which execution context to perform evalu ation. If the parameter is omitted the evaluation will be performed in the conte xt of the inspected page." }, 193 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which execution context to perform evalu ation. If the parameter is omitted the evaluation will be performed in the conte xt of the inspected page." },
194 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." }, 194 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." },
195 { "name": "generatePreview", "type": "boolean", "optional": true, "experimental": true, "description": "Whether preview should be generated for the result." }, 195 { "name": "generatePreview", "type": "boolean", "optional": true, "experimental": true, "description": "Whether preview should be generated for the result." },
196 { "name": "userGesture", "type": "boolean", "optional": true , "experimental": true, "description": "Whether execution should be treated as i nitiated by user in the UI." }, 196 { "name": "userGesture", "type": "boolean", "optional": true , "experimental": true, "description": "Whether execution should be treated as i nitiated by user in the UI." },
197 { "name": "awaitPromise", "type": "boolean", "optional":true , "experimental": true, "description": "Whether execution should wait for promis e to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." } 197 { "name": "awaitPromise", "type": "boolean", "optional":true , "experimental": true, "description": "Whether execution should wait for promis e to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." }
198 ], 198 ],
199 "returns": [ 199 "returns": [
200 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." }, 200 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." },
201 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
202 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "experimental": true, "description": "Exception details."} 201 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "experimental": true, "description": "Exception details."}
203 ], 202 ],
204 "description": "Evaluates expression on global object." 203 "description": "Evaluates expression on global object."
205 }, 204 },
206 { 205 {
207 "name": "awaitPromise", 206 "name": "awaitPromise",
208 "experimental": true, 207 "experimental": true,
209 "async": true, 208 "async": true,
210 "parameters": [ 209 "parameters": [
211 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc ription": "Identifier of the promise." }, 210 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc ription": "Identifier of the promise." },
212 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." }, 211 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." },
213 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." } 212 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." }
214 ], 213 ],
215 "returns": [ 214 "returns": [
216 { "name": "result", "$ref": "RemoteObject", "description": " Promise result. Will contain rejected value if promise was rejected." }, 215 { "name": "result", "$ref": "RemoteObject", "description": " Promise result. Will contain rejected value if promise was rejected." },
217 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the promise was rejected." },
218 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details if stack strace is available." } 216 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details if stack strace is available." }
219 ], 217 ],
220 "description": "Add handler to promise with given promise object id." 218 "description": "Add handler to promise with given promise object id."
221 }, 219 },
222 { 220 {
223 "name": "callFunctionOn", 221 "name": "callFunctionOn",
224 "async": true, 222 "async": true,
225 "parameters": [ 223 "parameters": [
226 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." }, 224 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." },
227 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." }, 225 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." },
228 { "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." }, 226 { "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." },
229 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "e xperimental": true }, 227 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "e xperimental": true },
230 { "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." }, 228 { "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." },
231 { "name": "generatePreview", "type": "boolean", "optional": true, "experimental": true, "description": "Whether preview should be generated for the result." }, 229 { "name": "generatePreview", "type": "boolean", "optional": true, "experimental": true, "description": "Whether preview should be generated for the result." },
232 { "name": "userGesture", "type": "boolean", "optional": true , "experimental": true, "description": "Whether execution should be treated as i nitiated by user in the UI." }, 230 { "name": "userGesture", "type": "boolean", "optional": true , "experimental": true, "description": "Whether execution should be treated as i nitiated by user in the UI." },
233 { "name": "awaitPromise", "type": "boolean", "optional":true , "experimental": true, "description": "Whether execution should wait for promis e to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." } 231 { "name": "awaitPromise", "type": "boolean", "optional":true , "experimental": true, "description": "Whether execution should wait for promis e to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." }
234 ], 232 ],
235 "returns": [ 233 "returns": [
236 { "name": "result", "$ref": "RemoteObject", "description": " Call result." }, 234 { "name": "result", "$ref": "RemoteObject", "description": " Call result." },
237 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
238 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "experimental": true, "description": "Exception details."} 235 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "experimental": true, "description": "Exception details."}
239 ], 236 ],
240 "description": "Calls function with given declaration on the giv en object. Object group of the result is inherited from the target object." 237 "description": "Calls function with given declaration on the giv en object. Object group of the result is inherited from the target object."
241 }, 238 },
242 { 239 {
243 "name": "getProperties", 240 "name": "getProperties",
244 "parameters": [ 241 "parameters": [
245 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to return properties for." }, 242 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to return properties for." },
246 { "name": "ownProperties", "optional": true, "type": "boolea n", "description": "If true, returns properties belonging only to the element it self, not to its prototype chain." }, 243 { "name": "ownProperties", "optional": true, "type": "boolea n", "description": "If true, returns properties belonging only to the element it self, not to its prototype chain." },
247 { "name": "accessorPropertiesOnly", "optional": true, "type" : "boolean", "description": "If true, returns accessor properties (with getter/s etter) only; internal properties are not returned either.", "experimental": true }, 244 { "name": "accessorPropertiesOnly", "optional": true, "type" : "boolean", "description": "If true, returns accessor properties (with getter/s etter) only; internal properties are not returned either.", "experimental": true },
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which execution context to perf orm script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page." }, 318 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which execution context to perf orm script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page." },
322 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 319 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
323 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." }, 320 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." },
324 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation." }, 321 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation." },
325 { "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." }, 322 { "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." },
326 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." }, 323 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." },
327 { "name": "awaitPromise", "type": "boolean", "optional": tru e, "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." } 324 { "name": "awaitPromise", "type": "boolean", "optional": tru e, "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." }
328 ], 325 ],
329 "returns": [ 326 "returns": [
330 { "name": "result", "$ref": "RemoteObject", "description": " Run result." }, 327 { "name": "result", "$ref": "RemoteObject", "description": " Run result." },
331 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the execution." },
332 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."} 328 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."}
333 ], 329 ],
334 "description": "Runs script with given id in a given context." 330 "description": "Runs script with given id in a given context."
335 } 331 }
336 ], 332 ],
337 "events": [ 333 "events": [
338 { 334 {
339 "name": "executionContextCreated", 335 "name": "executionContextCreated",
340 "parameters": [ 336 "parameters": [
341 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." } 337 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier to evaluate on." }, 613 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier to evaluate on." },
618 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, 614 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
619 { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid relea sing resulting object handles using <code>releaseObjectGroup</code>)." }, 615 { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid relea sing resulting object handles using <code>releaseObjectGroup</code>)." },
620 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Specifies whether command line API should be availab le to the evaluated expression, defaults to false.", "experimental": true }, 616 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Specifies whether command line API should be availab le to the evaluated expression, defaults to false.", "experimental": true },
621 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "expe rimental": true }, 617 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "expe rimental": true },
622 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." }, 618 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." },
623 { "name": "generatePreview", "type": "boolean", "optional": true, "experimental": true, "description": "Whether preview should be generated for the result." } 619 { "name": "generatePreview", "type": "boolean", "optional": true, "experimental": true, "description": "Whether preview should be generated for the result." }
624 ], 620 ],
625 "returns": [ 621 "returns": [
626 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Object wrapper for the evaluation result." }, 622 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Object wrapper for the evaluation result." },
627 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
628 { "name": "exceptionDetails", "$ref": "Runtime.ExceptionDeta ils", "optional": true, "experimental": true, "description": "Exception details. "} 623 { "name": "exceptionDetails", "$ref": "Runtime.ExceptionDeta ils", "optional": true, "experimental": true, "description": "Exception details. "}
629 ], 624 ],
630 "description": "Evaluates expression on a given call frame." 625 "description": "Evaluates expression on a given call frame."
631 }, 626 },
632 { 627 {
633 "name": "setVariableValue", 628 "name": "setVariableValue",
634 "parameters": [ 629 "parameters": [
635 { "name": "scopeNumber", "type": "integer", "description": " 0-based number of scope as was listed in scope chain. Only 'local', 'closure' an d 'catch' scope types are allowed. Other scopes could be manipulated manually." }, 630 { "name": "scopeNumber", "type": "integer", "description": " 0-based number of scope as was listed in scope chain. Only 'local', 'closure' an d 'catch' scope types are allowed. Other scopes could be manipulated manually." },
636 { "name": "variableName", "type": "string", "description": " Variable name." }, 631 { "name": "variableName", "type": "string", "description": " Variable name." },
637 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr iption": "New variable value." }, 632 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr iption": "New variable value." },
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 { 994 {
1000 "name": "heapStatsUpdate", 995 "name": "heapStatsUpdate",
1001 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 996 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1002 "parameters": [ 997 "parameters": [
1003 { "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."} 998 { "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."}
1004 ] 999 ]
1005 } 1000 }
1006 ] 1001 ]
1007 }] 1002 }]
1008 } 1003 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698