From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- .../built-ins/Set/Symbol.species/symbol-species.js | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 js/src/tests/test262/built-ins/Set/Symbol.species/symbol-species.js (limited to 'js/src/tests/test262/built-ins/Set/Symbol.species/symbol-species.js') diff --git a/js/src/tests/test262/built-ins/Set/Symbol.species/symbol-species.js b/js/src/tests/test262/built-ins/Set/Symbol.species/symbol-species.js new file mode 100644 index 0000000000..f52ab2c093 --- /dev/null +++ b/js/src/tests/test262/built-ins/Set/Symbol.species/symbol-species.js @@ -0,0 +1,23 @@ +// Copyright 2015 Cubane Canada, Inc. All rights reserved. +// See LICENSE for details. + +/*--- +info: | + Set has a property at `Symbol.species` +esid: sec-get-set-@@species +author: Sam Mikes +description: Set[Symbol.species] exists per spec +includes: [propertyHelper.js] +features: [Symbol.species] +---*/ + +var desc = Object.getOwnPropertyDescriptor(Set, Symbol.species); + +assert.sameValue(desc.set, undefined); +assert.sameValue(typeof desc.get, 'function'); + +verifyNotWritable(Set, Symbol.species, Symbol.species); +verifyNotEnumerable(Set, Symbol.species); +verifyConfigurable(Set, Symbol.species); + +reportCompare(0, 0); -- cgit v1.2.3