Skip to main content

map_ctor

Function map_ctor 

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

new Map(iterable)。ES2024 §24.1.1.1 準拠で 1 要素ずつ反復し、 エントリ取得・検証・adder 呼び出しでの例外時は IteratorClose を呼ぶ。