From https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring:
This is a distinct method that implements the same algorithm as Array.prototype.toLocaleString as defined in 23.1.3.32 except that TypedArrayLength is called in place of performing a [[Get]] of "length".
From https://tc39.es/ecma262/#sec-array.prototype.tolocalestring:
- Let separator be the implementation-defined list-separator String value appropriate for the host environment's current locale (such as ", ").
This test assumes the implementation-defined separator is , without a space:
|
assert.sameValue(typedArray.toLocaleString(), "0,"); |
This is not true in at least Boa and Kiesel which both use , .