]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/exception-008.js
2 * File Name: exception-008
4 * Description: Tests for JavaScript Standard Exceptions
8 * Author: christine@netscape.com
11 var SECTION
= "exception-008";
12 var VERSION
= "js1_4";
13 var TITLE
= "Tests for JavaScript Standard Exceptions: SyntaxError";
16 writeHeaderToLog( SECTION
+ " "+ TITLE
);
19 var testcases
= new Array();
26 result
= "failed: no exception thrown";
30 result
= eval("continue;");
32 result
= "passed: threw exception",
33 exception
= e
.toString();
35 testcases
[tc
++] = new TestCase(
37 "eval(\"continue\") [ exception is " + exception
+" ]",
38 "passed: threw exception",