{1027,"'default' can only appear once in a 'switch' statement"},
{1005,"Expected '('"},
{1006,"Expected ')'"},
{1012,"Expected '/'"},
{1003,"Expected ':'"},
{1004,"Expected ';'"},
{1032,"Expected '@'"},
{1029,"Expected '@end'"},
{1007,"Expected ']'"},
{1008,"Expected '{'"},
{1009,"Expected '}'"},
{1011,"Expected '='"},
{1033,"Expected 'catch'"},
{1031,"Expected constant"},
{1023,"Expected hexadecimal digit"},
{1010,"Expected identifier"},
{1028,"Expected identifier, string or number"},
{1024,"Expected 'while'"},
{1014,"Invalid character"},
{1026,"Label not found"},
{1025,"Label redefined"},
{1018,"'return' statement outside of function"},
{1002,"Syntax error"},
{1035,"Throw must be followed by an expression on the same source line"},
{1016,"Unterminated comment"},
{1015,"Unterminated string constant"}
};
#endregion
#region constructors
/// <summary>
/// Initializes a new JScript engine instance.
/// </summary>
publicJScriptEngine()
:this(null)
{
}
/// <summary>
/// Initializes a new JScript engine instance with the specified name.
/// </summary>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
publicJScriptEngine(stringname)
:this(name,WindowsScriptEngineFlags.None)
{
}
/// <summary>
/// Initializes a new JScript engine instance with the specified options.
/// </summary>
/// <param name="flags">A value that selects options for the operation.</param>
/// Initializes a new JScript engine instance with the specified name and options.
/// </summary>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
/// <param name="flags">A value that selects options for the operation.</param>
/// Initializes a new JScript engine instance with the specified programmatic
/// identifier, name, and options.
/// </summary>
/// <param name="progID">The programmatic identifier (ProgID) of the JScript engine class.</param>
/// <param name="name">A name to associate with the instance. Currently this name is used only as a label in presentation contexts such as debugger user interfaces.</param>
/// <param name="flags">A value that selects options for the operation.</param>
/// <remarks>
/// The <paramref name="progID"/> argument can be a class identifier (CLSID) in standard
/// GUID format with braces (e.g., "{F414C260-6AC0-11CF-B6D1-00AA00BBBB58}").