Index: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json b/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json |
index d5778e22fd0b9e88f85809f67fdf9991fdb36dfb..314cb5f13cb2141b776fb415bfda2986e8efa01d 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json |
+++ b/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json |
@@ -178,6 +178,7 @@ |
"commands": [ |
{ |
"name": "evaluate", |
+ "async": true, |
"parameters": [ |
{ "name": "expression", "type": "string", "description": "Expression to evaluate." }, |
{ "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }, |
@@ -186,7 +187,8 @@ |
{ "name": "contextId", "$ref": "ExecutionContextId", "optional": true, "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." }, |
{ "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }, |
{ "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }, |
- { "name": "userGesture", "type": "boolean", "optional": true, "hidden": true, "description": "Whether execution should be treated as initiated by user in the UI." } |
+ { "name": "userGesture", "type": "boolean", "optional": true, "hidden": true, "description": "Whether execution should be treated as initiated by user in the UI." }, |
+ { "name": "awaitPromise", "type": "boolean", "optional":true, "hidden": true, "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." } |
], |
"returns": [ |
{ "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." }, |