Name Description Size Coverage
add-not-callable-throws.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > Throws TypeError if add is not callable on constructor call. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 5. If iterable is not present, let iterable be undefined. 6. If iterable is either undefined or null, let iter be undefined. 7. Else, a. Let adder be Get(set, "add"). b. ReturnIfAbrupt(adder). c. If IsCallable(adder) is false, throw a TypeError exception. ... --- 710 -
constructor.js --- es6id: 23.4.1 esid: sec-weakset-constructor description: > The WeakSet constructor is the %WeakSet% intrinsic object and the initial value of the WeakSet property of the global object. --- 424 -
empty-iterable.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > If the iterable argument is empty, return new Weakset object. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 9. Repeat a. Let next be IteratorStep(iter). b. ReturnIfAbrupt(next). c. If next is false, return set. ... --- 802 -
get-add-method-failure.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > Return abrupt after getting `add` method. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 5. If iterable is not present, let iterable be undefined. 6. If iterable is either undefined or null, let iter be undefined. 7. Else, a. Let adder be Get(set, "add"). b. ReturnIfAbrupt(adder). ... --- 727 -
iterable-failure.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > If the iterable argument is undefined, return new Weakset object. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 7. Else, d. Let iter be GetIterator(iterable). e. ReturnIfAbrupt(iter). ... --- 477 -
iterable.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > Returns the new WeakSet adding the objects from the iterable parameter. info: | WeakSet ( [ iterable ] ) ... 9. Repeat f. Let status be Call(adder, set, «nextValue»). g. If status is an abrupt completion, return IteratorClose(iter, status). includes: [compareArray.js] --- 925 -
iterator-close-after-add-failure.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > Return IteratorClose(iter, status) if fail on adding value on constructing. info: | WeakSet ( [ iterable ] ) ... 9. Repeat f. Let status be Call(adder, set, «nextValue»). g. If status is an abrupt completion, return IteratorClose(iter, status). features: [Symbol.iterator] --- 985 -
iterator-next-failure.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > Return abrupt from next iterator step. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 9. Repeat a. Let next be IteratorStep(iter). b. ReturnIfAbrupt(next). ... features: [Symbol.iterator] --- 628 -
iterator-value-failure.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > If the iterable argument is empty, return new Weakset object. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 9. Repeat ... d. Let nextValue be IteratorValue(next). e. ReturnIfAbrupt(nextValue). features: [Symbol.iterator] --- 758 -
length.js --- es6id: 23.4.2 esid: sec-properties-of-the-weakset-constructor description: > The length property of the WeakSet constructor is 0. includes: [propertyHelper.js] --- 508 -
name.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > WeakSet ( [ iterable ] ) 17 ECMAScript Standard Built-in Objects includes: [propertyHelper.js] --- 519 -
no-iterable.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > If the iterable argument is undefined, return new Weakset object. info: | 23.4.1.1 WeakSet ( [ iterable ] ) ... 5. If iterable is not present, let iterable be undefined. 6. If iterable is either undefined or null, let iter be undefined. ... 8. If iter is undefined, return set. ... --- 780 -
properties-of-the-weakset-prototype-object.js --- es6id: 23.4.3 esid: sec-properties-of-the-weakset-prototype-object description: > The WeakSet.prototype's prototype is Object.prototype. info: | 23.4.3 Properties of the WeakSet Prototype Object The WeakSet prototype object is the intrinsic object %WeakSetPrototype%. The value of the [[Prototype]] internal slot of the WeakSet prototype object is the intrinsic object %ObjectPrototype% (19.1.3). The WeakSet prototype object is an ordinary object. It does not have a [[WeakSetData]] internal slot. --- 824 -
proto-from-ctor-realm.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: Default [[Prototype]] value derived from realm of the newTarget info: | [...] 2. Let set be ? OrdinaryCreateFromConstructor(NewTarget, "%WeakSetPrototype%", « [[WeakSetData]] »). [...] 9.1.14 GetPrototypeFromConstructor [...] 3. Let proto be ? Get(constructor, "prototype"). 4. If Type(proto) is not Object, then a. Let realm be ? GetFunctionRealm(constructor). b. Let proto be realm's intrinsic object named intrinsicDefaultProto. [...] features: [cross-realm, Reflect] --- 938 -
prototype -
prototype-of-weakset.js --- es6id: 23.4.2 esid: sec-properties-of-the-weakset-constructor description: > The value of the [[Prototype]] internal slot of the WeakSet constructor is the intrinsic object %FunctionPrototype% (19.2.3). --- 501 -
symbol-disallowed-as-weakset-key.js --- es6id: 23.4.3.1_S2 esid: sec-weakset.prototype.add description: > Symbol may not be used as a WeakSet entry features: [Symbol, WeakSet] --- 400 -
undefined-newtarget.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > The WeakSet constructor is the %WeakSet% intrinsic object and the initial value of the WeakSet property of the global object. info: | 23.4.1.1 WeakSet ( [ iterable ] ) 1. If NewTarget is undefined, throw a TypeError exception. --- 558 -
weakset.js --- es6id: 23.4.1.1 esid: sec-weakset-iterable description: > WeakSet ( [ iterable ] ) 17 ECMAScript Standard Built-in Objects includes: [propertyHelper.js] --- 417 -