blob: 53af64c9d028d37d051fe559e7ee36554f93db8c [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// Copyright 2014 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
7var a = ["string"];
8function funky(array) { return array[0] = 1; }
9funky(a);
10
11function crash() {
12 var q = [0];
13 // The failing ASSERT was only triggered when compiling for OSR.
14 for (var i = 0; i < 100000; i++) {
15 funky(q);
16 }
17 q[0] = 0;
18 funky(q)
19}
20
21crash();