Debian Codegraph @

rhino/testsrc/tests/ecma_3/Exceptions/regress-58946.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 var gTestfile = 'regress-58946.js';
8 //-------------------------------------------------------------------------------------------------
9 var BUGNUMBER = '58946';
10 var stat = 'Testing a return statement inside a catch statement inside a function';
11
12 test();
13
14 function test() {
15 enterFunc ("test");
16 printBugNumber(BUGNUMBER);
17 printStatus (stat);
18
19 expect = 'PASS';
20
21 function f()
22 {
23 try
24 {
25 throw 'PASS';
26 }
27 catch(e)
28 {
29 return e;
30 }
31 }
32
33 actual = f();
34
35 reportCompare(expect, actual, stat);
36
37 exitFunc ("test");
38 }