Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/ion/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 832 B image not shown  

Quelle  bug1273858-2.js   Sprache: JAVA

 
// |jit-test| --no-threads

function t1() {
    let x = [];

    try
    {
        for (let k = 0; k < 100; ++k)
        {
            let w = () => k; // Lexical capture

            if (w() > 10)
            {
                throw () => w; // Lexical capture
            }

            x[k] = w;
        }
    }
    catch (e)
    {
        // 'w' and 'k' should leave scope as exception unwinds

        try {
            eval("k");
            throw false;
        }
        catch (e) {
            if (!(e instanceof ReferenceError))
                throw "Loop index escaped block";
        }

        try {
            eval("w");
            throw false;
        }
        catch (e) {
            if (!(e instanceof ReferenceError))
                throw "Local name escaped block";
        }
    }
}
t1();
t1();
t1();
t1();

Messung V0.5
C=89 H=91 G=89

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.