Runtime.parse

Parses JavaScript source code for errors.

{
  "name": "parse",
  "parameters": [
    {
      "name": "source",
      "type": "string",
      "description": "Source code to parse."
    }
  ],
  "returns": [
    {
      "name": "result",
      "$ref": "SyntaxErrorType",
      "description": "Parse result."
    },
    {
      "name": "message",
      "type": "string",
      "optional": true,
      "description": "Parse error message."
    },
    {
      "name": "range",
      "$ref": "ErrorRange",
      "optional": true,
      "description": "Range in the source where the error occurred."
    }
  ],
  "description": "Parses JavaScript source code for errors."
}