Skip to main content

history_change_state

Function history_change_state 

Source
pub(crate) fn history_change_state(
    it: &mut Interp,
    this: &Value,
    a: &[Value],
    push: bool,
) -> Result<Value, Value>
Expand description

history.pushState / replaceState 共通: url 指定があれば location を書換え、state を保存。 pushState のみ length をインクリメント。popstate は仕様通り発火しない。