blob: c072ed2a15befd66232f1b649b979f6b5d2a6014 [file] [log] [blame]
Ben Murdochc5610432016-08-08 18:44:38 +01001// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --allow-natives-syntax
6
7function f(arr, i) {
8 arr[i] = 50;
9}
10
11function boom(dummy) {
12 var arr = new Array(10);
13 f(arr, 10);
14 if (dummy) {
15 f(arr, -2147483648);
16 }
17}
18
19boom(false);
20%OptimizeFunctionOnNextCall(boom);
21boom(false);