Chromium Code Reviews| Index: Source/devtools/protocol.json |
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
| index f2c17653080960fc580a2ab333a40fbffddd6714..0df873edfec8f93368d893ba43e5e02321fb11cf 100644 |
| --- a/Source/devtools/protocol.json |
| +++ b/Source/devtools/protocol.json |
| @@ -3127,6 +3127,18 @@ |
| ], |
| "description": "Error data for setScriptSource command. compileError is a case type for uncompilable script source error.", |
| "hidden": true |
| + }, |
| + { |
| + "id": "PromiseDetails", |
| + "type": "object", |
| + "description": "Information about the promise.", |
| + "properties": [ |
| + { "name": "id", "type": "integer", "description": "Unique id of the promise." }, |
| + { "name": "status", "type": "string", "enum": ["pending", "resolved", "rejected"], "description": "Status of the promise." }, |
| + { "name": "parentId", "type": "integer", "optional": true, "description": "Id of the parent promise." }, |
| + { "name": "callFrame", "$ref": "Console.CallFrame", "optional": true, "description": "Top call frame on promise creation."} |
| + ], |
| + "hidden": true |
| } |
| ], |
| "commands": [ |
| @@ -3408,6 +3420,24 @@ |
| ], |
| "hidden": true, |
| "description": "Enables or disables async call stacks tracking." |
| + }, |
| + { |
| + "name": "enablePromiseTracker", |
| + "hidden": true, |
| + "description": "Enables promise tracking." |
|
yurys
2014/09/08 11:52:52
Please add a description of what will change when
Alexandra Mikhaylova
2014/09/09 12:47:59
Done.
|
| + }, |
| + { |
| + "name": "disablePromiseTracker", |
| + "hidden": true, |
| + "description": "Disables promise tracking." |
| + }, |
| + { |
| + "name": "getPromises", |
| + "returns": [ |
| + { "name": "promises", "type": "array", "items": { "$ref": "PromiseDetails" }, "description": "Information about stored promises." } |
| + ], |
| + "hidden": true, |
| + "description": "Returns detailed information about all <code>Promise</code>s that were created or updated after the <code>enablePromiseTracker</code> command, and were not yet garbage collected." |
|
yurys
2014/09/08 11:52:52
...and have not been garbage collected yet.
Alexandra Mikhaylova
2014/09/09 12:47:59
Done.
|
| } |
| ], |
| "events": [ |