| Index: Source/devtools/protocol.json
|
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
|
| index d980cf1a17dd74c9898ba7513674ad9becb5abad..9dbe90d13bb17177552013e57ba046bd4c4d0d17 100644
|
| --- a/Source/devtools/protocol.json
|
| +++ b/Source/devtools/protocol.json
|
| @@ -2909,6 +2909,18 @@
|
| "description": "Scope description."
|
| },
|
| {
|
| + "id": "ExceptionDetails",
|
| + "type": "object",
|
| + "description": "Detailed information on exception (or error) that was thrown during script compilation or execution.",
|
| + "properties": [
|
| + { "name": "text", "type": "string", "description": "Exception text." },
|
| + { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
|
| + { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
|
| + { "name": "column", "type": "integer", "optional": true, "description": "Column number in the resource that generated this message." },
|
| + { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." }
|
| + ]
|
| + },
|
| + {
|
| "id": "SetScriptSourceError",
|
| "type": "object",
|
| "properties": [
|
| @@ -3123,9 +3135,7 @@
|
| ],
|
| "returns": [
|
| { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
|
| - { "name": "syntaxErrorMessage", "type": "string", "optional": true, "description": "Syntax error message if compilation failed." },
|
| - { "name": "lineNumber", "type" : "integer", "optional": true, "description": "Syntax error message line number if compilation failed." },
|
| - { "name": "columnNumber", "type" : "integer", "optional": true, "description": "Syntax error message column number if compilation failed." }
|
| + { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "description": "Exception details."}
|
| ],
|
| "description": "Compiles expression."
|
| },
|
| @@ -3140,9 +3150,7 @@
|
| ],
|
| "returns": [
|
| { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Run result." },
|
| - { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the script run." },
|
| - { "name": "lineNumber", "type" : "integer", "optional": true, "description": "Exception message line number if compilation failed." },
|
| - { "name": "columnNumber", "type" : "integer", "optional": true, "description": "Exception message column number if compilation failed." }
|
| + { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "description": "Exception details."}
|
| ],
|
| "description": "Runs script with given id in a given context."
|
| },
|
|
|