1 // Copyright (C) 2024 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-array.prototype.flatMap
7 Array.prototype.flatMap is given a callback that modifies the array being
9 includes: [compareArray.js]
12 (function TestGrow() {
13 let array = [0,1,2,3];
18 assert.compareArray(array.flatMap(f), [0,1,2,3]);
21 (function TestShrink() {
22 let array = [0,1,2,3];
27 assert.compareArray(array.flatMap(f), [0,1,2]);