- JS1197: Too many errors
MICROSOFT
Too many errors. The file might not be a JScript .NET file.
The code has generated too many errors. The most common cause is trying to compile a file that is not a JScript .NET file. Alternatively, the code may simply have a few errors from which the compiler cannot recover, which causes many other errors.
Make sure the file that the compiler is compiling is a JScript .NET file.
Fix the first few errors, then recompile.
JScript Syntax Errors Comments |
| |
- JS1198: Syntax error. Write 'var identifier : Type' rather than 'Type identifier' to declare a typed variable
MICROSOFT
Your code has what appears to be a C-style field declaration of the form Type identifier. To declare a field in JScript, use the var identifier : Type syntax.
Declare fields using the var identifier : Type syntax.
JScript Syntax Errors Comments |
| |
- JS1199: Syntax error. Write 'function identifier(...) : Type{' rather than 'Type identifier(...){' to declare a typed function
MICROSOFT
The code has what appears to be a C-style method declaration of the form Type identifier(...). To declare a method in JScript, use the function identifier(...) : Type syntax.
Declare methods using the function identifier(...) : Type syntax.
JScript Syntax Errors Comments |
| |
- JS1215: Converting a JScript Array to a System.Array results in a memory allocation and an array copy
MICROSOFT
The code converts a JScript Array object to a typed array (a System.Array).
Note:
This is accomplished by allocating enough memory to store a copy of the typed array and by copying the elements of the JScript array into the typed array.
Consequently, modifications to the typed array will not be reflected in the JScript array unless the code copies the typed array back to the JScript array after making the modifications.
Use explicit type conversion to convert the JScript array to the typed array.
JScript Syntax Errors Comments |
| |
- JS1002: Syntax error
MICROSOFT
A JScript statement violates one or more of JScript's grammatical rules.
Double-check the program's syntax on the line number indicated.
Look for misdirected parentheses or braces.
JScript Syntax Errors Comments |
| |
- JS1159: Syntax error. Use 'static classname {...}' to define a class initializer
MICROSOFT
A code block immediately follows a modifier inside a class. JScript modifiers can only be applied to class members. Two likely scenarios might produce this result:
You meant to define a class initializer but left out the class name.
You meant to define a method or property accessor but left out the function, function get, or function set statement.
If you meant to define a class initializer, use the correct syntax for static statement.
If you meant to define a method or property accessor, use the correct syntax for the function, function get, or function set statement.
JScript Syntax Errors Comments |
| |
JS5017 - MICROSOFT Syntax error in regular expression
A regular expression search string's syntax violates one or more of the grammatical rules of a JScript regular expression.
Make sure that a regular expression search string adheres to the JScript regular expression syntax.
JScript Run-time Errors Comments |
| |
- JS1014: Invalid character
MICROSOFT
An identifier includes a character (or characters) not recognized as valid by the JScript compiler. Valid characters use the following rules:
The first character must be an ASCII letter (either uppercase or lowercase), an underscore (_), or a dollar sign ($).
Subsequent characters can be ASCII letters, numbers, underscores, or dollar signs.
The identifier name cannot be a reserved word.
Avoid using characters that are not part of the JScript language definition.
JScript Syntax Errors Comments |
| |
- JS1248: Expected 'assembly'
MICROSOFT
The code appears to define global attributes for an assembly, but the assembly identifier is not used. The correct syntax to define an assembly attribute is:
[assembly: attribute]
The attribute should be a valid global attribute for an assembly, which are provided by the System.Reflection namespace. For more information, see System.Reflection Namespace.
Make sure to use the correct syntax to declare global attributes.
JScript Syntax Errors Comments |
| |
- JS1028: Expected identifier or string
MICROSOFT
An incorrect literal syntax is used to declare an object literal. The properties of an object literal must be either an identifier or a string. An object literal (also called an "object initializer") consists of a comma-separated list of property:value pairs, all enclosed within brackets. For example:
var point = {x:1.2, y:-3.4};
Ensure that the literal syntax is correct.
JScript Syntax Errors Comments |
| |