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/. */
6
//-----------------------------------------------------------------------------
7
var BUGNUMBER = 350312;
8
var summary = 'Accessing wrong stack slot with nested catch/finally';
13
//-----------------------------------------------------------------------------
15
//-----------------------------------------------------------------------------
20
printBugNumber(BUGNUMBER);
21
printStatus (summary);
28
} catch (e if e == null) {
39
(iter = gen()).next().close();
40
reportCompare(expect, actual, summary);
46
(iter = gen()).next().throw(1);
51
reportCompare(expect, actual, summary);
53
expect = 'CATCH,FINALLY';
57
(iter = gen()).next().throw(null);
62
reportCompare(expect, actual, summary);
66
var expectexcp = '[object StopIteration]';
70
(iter = gen()).next().next();
76
reportCompare(expect, actual, summary);
77
reportCompare(expectexcp, actualexcp, summary);