3 ECMA Section: 12.9 The return statement
6 Author: christine@netscape.com
9 var SECTION = "12.9-1-n";
10 var VERSION = "ECMA_1";
11 var TITLE = "The return statment";
14 writeHeaderToLog( SECTION + " The return statement");
17 var testcases = new Array();
19 var result = "Failed";
20 var exception = "No exception thrown";
21 var expect = "Passed";
27 exception = e.toString();
30 testcases[tc++] = new TestCase(
32 "return outside of a function" +
33 " (threw " + exception +")",