Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/tests/non262/Intl/Array/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  toLocaleString.js

  Sprache: JAVA
 

if (typeof Intl === "object") {
    const localeSep = [,,].toLocaleString();

    // Missing arguments are passed as |undefined|.
    const objNoArgs = {
        toLocaleString() {
            assertEq(arguments.length, 2);
            assertEq(arguments[0], undefined);
            assertEq(arguments[1], undefined);
            return "pass";
        }
    };
    // - Single element case.
    assertEq([objNoArgs].toLocaleString(), "pass");
    // - More than one element.
    assertEq([objNoArgs, objNoArgs].toLocaleString(), "pass" + localeSep + "pass");

    // Ensure "locales" and "options" arguments are passed to the array elements.
    const locales = {}, options = {};
    const objWithArgs = {
        toLocaleString() {
            assertEq(arguments.length, 2);
            assertEq(arguments[0], locales);
            assertEq(arguments[1], options);
            return "pass";
        }
    };
    // - Single element case.
    assertEq([objWithArgs].toLocaleString(locales, options), "pass");
    // - More than one element.
    assertEq([objWithArgs, objWithArgs].toLocaleString(locales, options), "pass" + localeSep + "pass");
}

if (typeof reportCompare === "function")
    reportCompare(truetrue);

Messung V0.5 in Prozent
C=95 H=92 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.