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)WeakMap と同じ理由で初期化用の iterable 引数が 無視されていた(new WeakSet([obj1, obj2]) が常に空になっていた)。