1c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// Copyright 2012 the V8 project authors. All rights reserved.
2c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// Redistribution and use in source and binary forms, with or without
3c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// modification, are permitted provided that the following conditions are
4c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// met:
5c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//
6c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//     * Redistributions of source code must retain the above copyright
7c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//       notice, this list of conditions and the following disclaimer.
8c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//     * Redistributions in binary form must reproduce the above
9c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//       copyright notice, this list of conditions and the following
10c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//       disclaimer in the documentation and/or other materials provided
11c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//       with the distribution.
12c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//     * Neither the name of Google Inc. nor the names of its
13c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//       contributors may be used to endorse or promote products derived
14c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//       from this software without specific prior written permission.
15c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org//
16c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org
28c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// Test that the throw is not inlined if object literals cannot be
29c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org// inlined.
30c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.orgArray.prototype.__proto__ = { 77e4  : null };
31c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.orgfunction continueWithinLoop() {
32c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org    for (var key in [(1.2)]) {  }
33c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.org};
34c740616f92d7ff45c8dbe985fb3a288492fcec97danno@chromium.orgcontinueWithinLoop();
35