An error in the 1st line is reported as being in line 0
An error in the 2nd line is also reported as being in line 0
And error in the 3rd as line 1
And then it increments as you would expect 2,3,4 ...
The JS engine is OK this is only in the VBScript engine.
Comments: This affects syntax (parsing) errors only. Runtime errors with stack traces are not affected. The line number is off by one (Windows script engines report zero-based line numbers). Note also that ClearScript formats code before passing it to the script engine; this includes stripping leading whitespace lines and global indentation.
An error in the 2nd line is also reported as being in line 0
And error in the 3rd as line 1
And then it increments as you would expect 2,3,4 ...
The JS engine is OK this is only in the VBScript engine.
Comments: This affects syntax (parsing) errors only. Runtime errors with stack traces are not affected. The line number is off by one (Windows script engines report zero-based line numbers). Note also that ClearScript formats code before passing it to the script engine; this includes stripping leading whitespace lines and global indentation.