Skip to main content

promise_all_static

Function promise_all_static 

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

Promise.all: 全要素が fulfilled になったら結果配列で解決、どれかが reject したらその理由で reject。 【2026-11-04】従来は呼ばれた瞬間の状態を写すだけで、未決の要素を undefined として即座に解決していた (extra_methods::promise_combinator に 4 つまとめて仕様どおりに作り直した)。