Skip to main content

pop_state_event_ctor

Function pop_state_event_ctor 

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

new PopStateEvent(type, options)(丸ごと未対応だった。2026-07-17 発見。実ナビゲーション経由のpopstate発火(interp.rsfire_ popstate)は既にstateプロパティ付きで正しく動いていたが、 window.dispatchEvent(new PopStateEvent('popstate', {state}))という 手動シミュレーションの定番パターン向けの専用コンストラクタ自体が 無かった)。基底の Event プロパティは event_ctor を再利用する。