pub(crate) fn num_to_locale_string(
_it: &mut Interp,
t: Value,
_a: &[Value],
) -> Result<Value, Value>Expand description
Number.prototype.toLocaleString() が toString() の別名に過ぎず、実際のブラウザなら
Intl 非搭載でも必ず入る3桁区切りのカンマ((1234567).toLocaleString() → "1,234,567")
が丸ごと欠落していた(常に "1234567" になっていた)バグ。Intl/ロケール引数自体は
非対応(Array.prototype.toLocaleString/normalize/localeCompare と同種の割り切り)
だが、既定のグループ区切り(整数部のみ、小数部・NaN・Infinity・負号は対象外)だけは行う。