Skip to main content

url_to_string

Function url_to_string 

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

URL.prototype.toString()href の静的スナップショットを返すのではなく、 searchParams の現在の内容から毎回クエリ文字列を再構成する(protocol/host/ pathname/hash は construction 時点のまま。この処理系は pathname/hash への 代入自体は未対応なので、それらのプロパティ再代入との不整合は生じない)。