1 // Copyright (C) 2021 Igalia, S.L. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 esid: sec-array.prototype.with
7 Array.prototype.with does not mutate its this value
8 features: [change-array-by-copy]
9 includes: [compareArray.js]
15 assert.compareArray(arr, [0, 1, 2]);
16 assert.notSameValue(arr.with(1, 3), arr);
17 assert.notSameValue(arr.with(1, 1), arr);