blob: 49794b815efcdfd1a380fb394f284c549db751b7 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +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
5class MyArray extends Array { }
6Object.prototype[Symbol.species] = MyArray;
7delete Array[Symbol.species];
8__v_1 = Math.pow(2, 31);
9__v_2 = [];
10__v_2[__v_1] = 31;
11__v_4 = [];
12__v_4[__v_1 - 2] = 33;
13assertThrows(() => __v_2.concat(__v_4), RangeError);