]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_3/Exceptions/regress-58946.js
2 * The contents of this file are subject to the Netscape Public
3 * License Version 1.1 (the "License"); you may not use this file
4 * except in compliance with the License. You may obtain a copy of
5 * the License at http://www.mozilla.org/NPL/
7 * Software distributed under the License is distributed on an "AS
8 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9 * implied. See the License for the specific language governing
10 * rights and limitations under the License.
12 * The Original Code is mozilla.org code.
14 * The Initial Developer of the Original Code is Netscape
15 * Communications Corporation. Portions created by Netscape are
16 * Copyright (C) 1998 Netscape Communications Corporation. All
19 * Contributor(s): pschwartau@netscape.com
22 *This test arose from Bugzilla bug 58946.
23 *The bug was filed when we got the following error (see code below):
25 * "ReferenceError: e is not defined"
27 *There was no error if we replaced "return e" in the code below with "print(e)".
28 *There should be no error with "return e", either -
30 //-------------------------------------------------------------------------------------------------
32 var stat
= 'Testing a return statement inside a catch statement inside a function';