Debian Codegraph @

rhino/testsrc/tests/ecma_2/Exceptions/exception-009.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 gTestfile = 'exception-009.js';
7
8 /**
9 * File Name: exception-009
10 * ECMA Section:
11 * Description: Tests for JavaScript Standard Exceptions
12 *
13 * Regression test for nested try blocks.
14 *
15 * http://scopus.mcom.com/bugsplat/show_bug.cgi?id=312964
16 *
17 * Author: [email protected]
18 * Date: 31 August 1998
19 */
20 var SECTION = "exception-009";
21 var VERSION = "JS1_4";
22 var TITLE = "Tests for JavaScript Standard Exceptions: SyntaxError";
23 var BUGNUMBER= "312964";
24
25 startTest();
26 writeHeaderToLog( SECTION + " "+ TITLE);
27
28 try {
29 expect = "passed: no exception thrown";
30 result = expect;
31 Nested_1();
32 } catch ( e ) {
33 result = "failed: threw " + e;
34 } finally {
35 new TestCase(
36 SECTION,
37 "nested try",
38 expect,
39 result );
40 }
41
42
43 test();
44
45 function Nested_1() {
46 try {
47 try {
48 } catch (a) {
49 } finally {
50 }
51 } catch (b) {
52 } finally {
53 }
54 }