Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/auto-regress/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  bug1448582-5.js

  Sprache: JAVA
 

// Repeat 1448582-{1,3,4}.js for classes.

(function(index) {
    // Does not assert.
    var c = class { constructor(){} };

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);

(function(index) {
    var c = class { constructor(){} };

    // Accessing |.name| sets the resolved-name flag, which should not be
    // copied over to the function clone.
    assertEq(c.name, "c");

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);

(function(index) {
    var c = class { constructor(a){} };

    // Accessing |.length| sets the resolved-length flag, which should not be
    // copied over to the function clone.
    assertEq(c.length, 1);

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);


// Repeat 1448582-{3,4}.js for generator functions.

(function(index) {
    function* f() {}

    // Accessing |.name| sets the resolved-name flag, which should not be
    // copied over to the function clone.
    assertEq(f.name, "f");

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);

(function(index) {
    function* f(a) {}

    // Accessing |.length| sets the resolved-length flag, which should not be
    // copied over to the function clone.
    assertEq(f.length, 1);

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);


// Repeat 1448582-{3,4}.js for async functions.

(function(index) {
    async function f() {}

    // Accessing |.name| sets the resolved-name flag, which should not be
    // copied over to the function clone.
    assertEq(f.name, "f");

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);

(function(index) {
    async function f(a) {}

    // Accessing |.length| sets the resolved-length flag, which should not be
    // copied over to the function clone.
    assertEq(f.length, 1);

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);


// Repeat 1448582-{3,4}.js for async generator functions.

(function(index) {
    async function* f() {}

    // Accessing |.name| sets the resolved-name flag, which should not be
    // copied over to the function clone.
    assertEq(f.name, "f");

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);

(function(index) {
    async function* f(a) {}

    // Accessing |.length| sets the resolved-length flag, which should not be
    // copied over to the function clone.
    assertEq(f.length, 1);

    if (index === 0) {
        (function self() {
            self.caller(1);
        })();
    }
})(0);

Messung V0.5 in Prozent
C=85 H=100 G=92

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-06-08) ¤

*© 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.