19f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// Copyright 2008 the V8 project authors. All rights reserved.
29f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// Redistribution and use in source and binary forms, with or without
39f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// modification, are permitted provided that the following conditions are
49f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// met:
59f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//
69f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//     * Redistributions of source code must retain the above copyright
79f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//       notice, this list of conditions and the following disclaimer.
89f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//     * Redistributions in binary form must reproduce the above
99f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//       copyright notice, this list of conditions and the following
109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//       disclaimer in the documentation and/or other materials provided
119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//       with the distribution.
129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//     * Neither the name of Google Inc. nor the names of its
139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//       contributors may be used to endorse or promote products derived
149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//       from this software without specific prior written permission.
159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson//
169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonfunction run() {
299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson var a = 0;
309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson L: try {
319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   throw "x";
329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } catch(x) {
339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   break L;
349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } finally {
359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson   a = 1;
369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson }
379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson assertEquals(1, a);
389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson}
399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson
409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonrun();
419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson