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

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

Issue 2116563003: [DevTools] Report unhandled exceptions and promise rejections through Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests pass Created 4 years, 5 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
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 "parameters": [ 301 "parameters": [
302 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Id of the destroyed context" } 302 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Id of the destroyed context" }
303 ], 303 ],
304 "description": "Issued when execution context is destroyed." 304 "description": "Issued when execution context is destroyed."
305 }, 305 },
306 { 306 {
307 "name": "executionContextsCleared", 307 "name": "executionContextsCleared",
308 "description": "Issued when all executionContexts were cleared i n browser" 308 "description": "Issued when all executionContexts were cleared i n browser"
309 }, 309 },
310 { 310 {
311 "name": "exceptionUnhandled",
pfeldman 2016/07/07 01:12:17 exceptionThrown
dgozman 2016/07/08 18:56:41 Done.
312 "description": "Issued when exception was thrown and unhandled." ,
313 "parameters": [
314 { "name": "exceptionId", "type": "integer", "description": " Exception id." },
315 { "name": "timestamp", "type": "number", "description": "Num ber of seconds since epoch. TODO(dgozman): unify with Console.Timestamp" },
316 { "name": "details", "$ref": "ExceptionDetails" },
317 { "name": "exception", "$ref": "RemoteObject", "optional": t rue, "description": "Exception object." },
318 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Identifier of the context where exception ha ppened." }
319 ],
320 "hidden": true
321 },
322 {
323 "name": "exceptionRevoked",
324 "description": "Issued when unhandled exception was revoked.",
325 "parameters": [
326 { "name": "timestamp", "type": "number", "description": "Num ber of seconds since epoch. TODO(dgozman): unify with Console.Timestamp" },
pfeldman 2016/07/07 01:12:17 Can we use this as an opportunity to migrate to ms
dgozman 2016/07/08 18:56:41 Done.
327 { "name": "message", "type": "string", "description": "Messa ge describing why exception was revoked." },
328 { "name": "revokedExceptionId", "type": "integer", "descript ion": "The id of revoked exception, as reported in <code>exceptionUnhandled</cod e>." }
pfeldman 2016/07/07 01:12:17 exceptionId
dgozman 2016/07/08 18:56:41 Done.
329 ],
330 "hidden": true
331 },
332 {
311 "name": "inspectRequested", 333 "name": "inspectRequested",
312 "parameters": [ 334 "parameters": [
313 { "name": "object", "$ref": "RemoteObject" }, 335 { "name": "object", "$ref": "RemoteObject" },
314 { "name": "hints", "type": "object" } 336 { "name": "hints", "type": "object" }
315 ], 337 ],
316 "hidden": true 338 "hidden": true
317 } 339 }
318 ] 340 ]
319 }, 341 },
320 { 342 {
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 "type": "number", 757 "type": "number",
736 "description": "Number of seconds since epoch.", 758 "description": "Number of seconds since epoch.",
737 "hidden": true 759 "hidden": true
738 }, 760 },
739 { 761 {
740 "id": "ConsoleMessage", 762 "id": "ConsoleMessage",
741 "type": "object", 763 "type": "object",
742 "description": "Console message.", 764 "description": "Console message.",
743 "properties": [ 765 "properties": [
744 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation"], "description": "Message source." }, 766 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation"], "description": "Message source." },
745 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info", "revokedError"], "description": "Message severity. " }, 767 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info"], "description": "Message severity." },
746 { "name": "text", "type": "string", "description": "Message text." }, 768 { "name": "text", "type": "string", "description": "Message text." },
747 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso le message type." }, 769 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso le message type." },
748 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." }, 770 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." },
749 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 771 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
750 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, 772 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
751 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, 773 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
752 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." }, 774 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." },
753 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." }, 775 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." },
754 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages. " }, 776 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages. " },
755 { "name": "networkRequestId", "type": "string", "optional": true, "description": "Identifier of the network request associated with this mes sage." }, 777 { "name": "networkRequestId", "type": "string", "optional": true, "description": "Identifier of the network request associated with this mes sage." },
756 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true }, 778 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true },
757 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true }, 779 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true },
758 { "name": "messageId", "type": "integer", "hidden": true, "o ptional": true, "description": "Message id." }, 780 { "name": "messageId", "type": "integer", "hidden": true, "o ptional": true, "description": "Message id." },
pfeldman 2016/07/07 01:12:17 These are no longer needed.
dgozman 2016/07/08 18:56:41 Done.
759 { "name": "relatedMessageId", "type": "integer", "hidden": t rue, "optional": true, "description": "Related message id." } 781 { "name": "relatedMessageId", "type": "integer", "hidden": t rue, "optional": true, "description": "Related message id." }
760 ] 782 ]
761 } 783 }
762 ], 784 ],
763 "commands": [ 785 "commands": [
764 { 786 {
765 "name": "enable", 787 "name": "enable",
766 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ." 788 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ."
767 }, 789 },
768 { 790 {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 { 1040 {
1019 "name": "heapStatsUpdate", 1041 "name": "heapStatsUpdate",
1020 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1042 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1021 "parameters": [ 1043 "parameters": [
1022 { "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."} 1044 { "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."}
1023 ] 1045 ]
1024 } 1046 }
1025 ] 1047 ]
1026 }] 1048 }]
1027 } 1049 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698