Skip to main content

weakset_ctor

Function weakset_ctor 

Source
pub(crate) fn weakset_ctor(
    it: &mut Interp,
    _t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

new WeakSet(iterable)。仕様準拠で 1 要素ずつ反復し、WeakSet.prototype.add 経由で登録、 例外時は IteratorClose を呼ぶ。