Skip to main content

weakmap_ctor

Function weakmap_ctor 

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

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