Name Description Size
add-not-callable-throws.js --- 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. ... --- 716
browser.js 0
constructor.js --- 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. --- 432
empty-iterable.js --- 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. ... --- 808
get-add-method-failure.js --- 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). ... --- 733
is-a-constructor.js --- esid: sec-ecmascript-standard-built-in-objects description: > The WeakSet constructor implements [[Construct]] info: | IsConstructor ( argument ) The abstract operation IsConstructor takes argument argument (an ECMAScript language value). It determines if argument is a function object with a [[Construct]] internal method. It performs the following steps when called: If Type(argument) is not Object, return false. If argument has a [[Construct]] internal method, return true. Return false. includes: [isConstructor.js] features: [Reflect.construct, WeakSet] --- 851
iterable-failure.js --- 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). ... --- 483
iterable-with-object-values.js --- esid: sec-weakset-iterable description: > Returns the new WeakSet adding Object values from the iterable parameter. info: | WeakSet ( [ _iterable_ ] ) 8. Repeat, d. Let _status_ be Completion(Call(_adder_, _set_, « _nextValue_ »)). WeakSet.prototype.add ( _value_ ): 6. Append _value_ as the last element of _entries_. features: [WeakSet] --- 957
iterable-with-symbol-values.js --- esid: sec-weakset-iterable description: > Returns the new WeakSet adding Symbol values from the iterable parameter. info: | WeakSet ( [ _iterable_ ] ) 8. Repeat, d. Let _status_ be Completion(Call(_adder_, _set_, « _nextValue_ »)). WeakSet.prototype.add ( _value_ ): 6. Append _value_ as the last element of _entries_. features: [Symbol, WeakSet, symbols-as-weakmap-keys] includes: [compareArray.js] --- 1239
iterator-close-after-add-failure.js --- 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] --- 991
iterator-next-failure.js --- 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] --- 634
iterator-value-failure.js --- 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] --- 764
length.js --- esid: sec-properties-of-the-weakset-constructor description: > The length property of the WeakSet constructor is 0. includes: [propertyHelper.js] --- 434
name.js --- esid: sec-weakset-iterable description: > WeakSet ( [ iterable ] ) 17 ECMAScript Standard Built-in Objects includes: [propertyHelper.js] --- 439
no-iterable.js --- 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. ... --- 786
properties-of-the-weakset-prototype-object.js --- 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. --- 832
proto-from-ctor-realm.js --- 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] --- 944
prototype
prototype-of-weakset.js --- 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). --- 509
shell.js --- description: | Test if a given function is a constructor function. defines: [isConstructor] features: [Reflect.construct] --- 596
undefined-newtarget.js --- 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. --- 564
weakset.js --- esid: sec-weakset-iterable description: > WeakSet ( [ iterable ] ) 17 ECMAScript Standard Built-in Objects includes: [propertyHelper.js] --- 423