blob: d60b8ba00f6f42d98cb57e98159ed57441db24b3 [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/**
6 * 9.4.2.3 ArraySpeciesCreate(originalArray, length)
7 *
8 * 1. Assert: length is an integer Number ≥ 0.
9 * 2. If length is −0, let length be +0.
10 * [...]
11 */
12
13var x = [];
14var deleteCount;
15
16x.constructor = function() {};
17x.constructor[Symbol.species] = function(param) {
18 deleteCount = param;
19};
20
21x.splice(0, -0);
22
23assertEquals(0, deleteCount);