| * File Name: exception-008 |
| * Description: Tests for JavaScript Standard Exceptions |
| * Author: christine@netscape.com |
| var SECTION = "exception-008"; |
| var TITLE = "Tests for JavaScript Standard Exceptions: SyntaxError"; |
| writeHeaderToLog( SECTION + " "+ TITLE); |
| var testcases = new Array(); |
| result = "failed: no exception thrown"; |
| result = eval("continue;"); |
| result = "passed: threw exception", |
| exception = e.toString(); |
| testcases[tc++] = new TestCase( |
| "eval(\"continue\") [ exception is " + exception +" ]", |
| "passed: threw exception", |