Skip to content

test/staging/sm/TypedArray/toLocaleString-detached.js assumes implementation-defined separator #4685

@linusg

Description

@linusg

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:

  1. 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 , .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions