15f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// Copyright 2010 the V8 project authors. All rights reserved. 25f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// Redistribution and use in source and binary forms, with or without 35f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// modification, are permitted provided that the following conditions are 45f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// met: 55f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// 65f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// * Redistributions of source code must retain the above copyright 75f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// notice, this list of conditions and the following disclaimer. 85f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// * Redistributions in binary form must reproduce the above 95f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// copyright notice, this list of conditions and the following 105f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// disclaimer in the documentation and/or other materials provided 115f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// with the distribution. 125f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// * Neither the name of Google Inc. nor the names of its 135f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// contributors may be used to endorse or promote products derived 145f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// from this software without specific prior written permission. 155f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// 165f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 175f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 185f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 195f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 205f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 215f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 225f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 235f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 245f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 265f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org 285f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// Flags: --expose-gc 295f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org 305f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// Verify that GC is safe in a finally block entered by falling off the try 315f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.org// block. 325f0c45f2cacb31d36a8f80c31f17bda7751a3644ager@chromium.orgeval("(function(){try { } catch(x) { } finally { gc() }})")(); 33