diff --git a/test/built-ins/Array/prototype/Symbol.unscopables/at.js b/test/built-ins/Array/prototype/Symbol.unscopables/at.js new file mode 100644 index 00000000000..f2ffb35b814 --- /dev/null +++ b/test/built-ins/Array/prototype/Symbol.unscopables/at.js @@ -0,0 +1,25 @@ +// Copyright (C) 2026 Ojus Chugh. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-array.prototype-@@unscopables +description: > + Array.prototype[Symbol.unscopables].at is true +info: | + 22.1.3.32 Array.prototype [ @@unscopables ] + + ... + 2. Perform ! CreateDataPropertyOrThrow(unscopableList, "at", true). + ... + +includes: [propertyHelper.js] +features: [Symbol.unscopables, Array.prototype.at] +---*/ + +var unscopables = Array.prototype[Symbol.unscopables]; + +assert.sameValue(unscopables.at, true, '`at` property value'); +verifyProperty(unscopables, "at", { + writable: true, + enumerable: true, + configurable: true +});