Skip to main content

arr_to_locale_string

Function arr_to_locale_string 

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

Array.prototype.toLocaleString()(ES3)が丸ごと欠落していた。各要素の toLocaleString() を呼び出し , で連結する(Intl 非搭載のためロケール依存の書式化は 行わず、要素が toLocaleString を持たなければ通常の文字列化にフォールバックする簡略実装。 Date.prototype.toLocaleString 等、要素側の実装があればそちらが優先される)。