JScript  

Throw must be followed by an expression on the same source line

[This is preliminary documentation and subject to change]

You used the throw keyword, but did not follow it with an expression on the same source line. A throw statement consists of two parts: the throw keyword, followed by the expression to be thrown. For example:

if (denominator == 0) {
 throw new DivideByZeroException();
}

You cannot split these two components up.

To correct this error

See Also

Error Object | throw Statement | try...catch Statement